Skip to content

Commit

Permalink
VCST-2404: ignore user reconfirmation (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
basilkot authored Dec 20, 2024
1 parent d194890 commit 0431e90
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public async Task<IdentityResultResponse> Handle(ConfirmEmailCommand request, Ca
{
identityResult = IdentityResult.Failed(new IdentityError { Code = "UserNotEditable", Description = "It is forbidden to edit this user." });
}
else if (user.EmailConfirmed)
{
identityResult = IdentityResult.Success;
}
else
{
identityResult = await userManager.ConfirmEmailAsync(user, Uri.UnescapeDataString(request.Token));
Expand Down

0 comments on commit 0431e90

Please sign in to comment.