feat: added informational output to ClickOnConfirmEmail
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
2f9c032934
commit
31409be192
1 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
if (!int.TryParse(userid, out _))
|
if (!int.TryParse(userid, out _))
|
||||||
{
|
{
|
||||||
msg = "This is not a valid id.";
|
msg = "malformed userid.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,17 +40,17 @@
|
||||||
|
|
||||||
if (user.Email != email)
|
if (user.Email != email)
|
||||||
{
|
{
|
||||||
msg = "The email does not match.";
|
msg = "This email is not specified to this account.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.ConfirmEmailToken != token)
|
if (user.ConfirmEmailToken != token)
|
||||||
{
|
{
|
||||||
msg = "The token is not correct.";
|
msg = "This token is not associated with the specified account.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
user.ConfirmEmailToken = "0";
|
user.ConfirmEmailToken = "-1";
|
||||||
user.ConfirmedEmail = true;
|
user.ConfirmedEmail = true;
|
||||||
|
|
||||||
await UsersRepository.updateUserAsync(user);
|
await UsersRepository.updateUserAsync(user);
|
||||||
|
|
Loading…
Reference in a new issue