Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed Nov 26, 2024
1 parent a31ef89 commit 5927034
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,14 @@ private async Task UpdateAndValidatePasswordAsync(RegisterExternalLoginViewModel
{
var validationResult = await passwordValidator.ValidateAsync(_userManager, user, model.Password);

if (!validationResult.Succeeded)
if (validationResult.Succeeded)
{
foreach (var error in validationResult.Errors)
{
ModelState.AddModelError(nameof(model.Password), error.Description);
}
continue;
}

foreach (var error in validationResult.Errors)
{
ModelState.AddModelError(nameof(model.Password), error.Description);
}
}
}
Expand Down

0 comments on commit 5927034

Please sign in to comment.