Skip to content

Commit

Permalink
set name when use passkey
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelliao committed Aug 15, 2023
1 parent 866c950 commit 804103c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.itranswarp.web</groupId>
<artifactId>itranswarp</artifactId>
<version>2.15</version>
<version>2.16</version>
<packaging>jar</packaging>

<parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public RegisterOptionsBean registerOptions(HttpServletRequest request) {
var options = new RegisterOptionsBean();
options.challenge = userService.createPasskeyChallenge().challenge;
options.rp = Map.of("name", website.name, "id", host);
options.user = Map.of("id", userId, "name", user.email, "displayName", user.name);
options.user = Map.of("id", userId, "name", user.name, "displayName", user.name);
options.timeout = passKeyChallengeTimeout.toMillis();
if (!existPks.isEmpty()) {
options.excludeCredentials = existPks.stream().map(pk -> {
Expand Down

0 comments on commit 804103c

Please sign in to comment.