Skip to content

Commit

Permalink
cleared validated when username not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferStrube committed Dec 27, 2023
1 parent 680c6c2 commit 32197ab
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ private async Task GetCredential()
ValidateCredentials? setup = await WebAuthenticationClient.ValidateChallenge(username);
if (setup is not { Challenge: { Length: > 0 } challenge, Credentials: { Count: > 0 } credentials })
{
validated = null;
errorMessage = "The user was not previously registered.";
return;
}
Expand Down

0 comments on commit 32197ab

Please sign in to comment.