feat: added informational output to ClickOnConfirmEmail

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-06-12 12:34:35 +02:00
parent 2f9c032934
commit 31409be192

View file

@ -26,7 +26,7 @@
if (!int.TryParse(userid, out _))
{
msg = "This is not a valid id.";
msg = "malformed userid.";
return;
}
@ -40,17 +40,17 @@
if (user.Email != email)
{
msg = "The email does not match.";
msg = "This email is not specified to this account.";
return;
}
if (user.ConfirmEmailToken != token)
{
msg = "The token is not correct.";
msg = "This token is not associated with the specified account.";
return;
}
user.ConfirmEmailToken = "0";
user.ConfirmEmailToken = "-1";
user.ConfirmedEmail = true;
await UsersRepository.updateUserAsync(user);