fix: fixed issues with email confirmation
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
3abc1ba7ab
commit
712ac3c020
4 changed files with 63 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
@page "/sys/click/confirmmail/{userid}/{oldmail}/{proposedemail}/{token}"
|
||||
@using System.ComponentModel.DataAnnotations
|
||||
@using ImageBoardServerApp.Data.Repository
|
||||
@inject NavigationManager navManager
|
||||
<h3>Confirm your Email</h3>
|
||||
|
||||
<span>Confirmed email. Check Account Settings.</span>
|
||||
|
@ -62,12 +63,17 @@
|
|||
return;
|
||||
}
|
||||
|
||||
Console.WriteLine("");
|
||||
|
||||
user.ConfirmEmailToken = "-1";
|
||||
user.ConfirmedEmail = true;
|
||||
|
||||
user.Email = proposedemail;
|
||||
|
||||
await UsersRepository.updateUserAsync(user);
|
||||
|
||||
msg = "The email has been confirmed.";
|
||||
navManager.NavigateTo("/sys/click/red/_sys_logout");
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue