Skip to content

Commit b496a95

Browse files
committed
Admin mange passkeys view/delete; test
1 parent 02ff13e commit b496a95

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/com/monkeyk/sos/domain/passkey/PasskeyCredential.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.monkeyk.sos.domain.AbstractDomain;
44

5+
import java.io.Serial;
56
import java.time.LocalDateTime;
67

78
/**
@@ -15,6 +16,8 @@
1516
*/
1617
public class PasskeyCredential extends AbstractDomain {
1718

19+
@Serial
20+
private static final long serialVersionUID = 7158786612947527990L;
1821
/**
1922
* 关联的用户 GUID。
2023
*/

src/main/resources/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h2>Spring Security&OAuth2.1
9292
</li>
9393
<li sec:authorize="hasRole('ROLE_ADMIN')">
9494
<p>
95-
<a th:href="@{/user/overview}">User</a> <span class="text-muted">- 管理User</span>
95+
<a th:href="@{/user/overview}">User</a> <span class="text-muted">- 管理User, 以及User Passkeys等</span>
9696
</p>
9797
</li>
9898
<li sec:authorize="isAuthenticated()">

src/main/resources/templates/passkeys/manage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<th:block th:insert="~{fragments/main::header-css}"/>
99
</head>
1010
<body class="container">
11+
<a th:href="@{/}">Home</a>
1112
<h2 class="page-header">Passkeys</h2>
1213

1314
<div class="alert alert-info">
@@ -65,7 +66,6 @@ <h2 class="page-header">Passkeys</h2>
6566
</div>
6667
</div>
6768

68-
<p><a th:href="@{/}">Back Home</a></p>
6969

7070
<div th:replace="~{fragments/main :: footer}"/>
7171
<script>

0 commit comments

Comments
 (0)