Skip to content

Commit

Permalink
fix key name and username swap (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Noblett authored Jun 15, 2023
1 parent 448c5ad commit d18bd8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/authschemes/webauthn/webauthn.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func (a WebAuthn) beginRegistration(w http.ResponseWriter, r *http.Request, brid
} else if info.RegistrationType == LinkCredential {
user = makeLinkingWebAuthnUser(info.UserID, info.Username, info.CredentialName)
} else { // Add Credential
user = makeAddCredentialWebAuthnUser(info.UserID, info.CredentialName, info.Username, info.ExistingCredentials)
user = makeAddCredentialWebAuthnUser(info.UserID, info.Username, info.CredentialName, info.ExistingCredentials)
}

credExcludeList := make([]protocol.CredentialDescriptor, len(user.Credentials))
Expand Down

0 comments on commit d18bd8e

Please sign in to comment.