having to change password from authenticated access
This commit is contained in:
parent
9178bc8b19
commit
fd27e5772f
3 changed files with 16 additions and 3 deletions
|
|
@ -430,8 +430,13 @@ namespace Yavsc.Controllers
|
|||
// GET: /Account/ForgotPassword
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public IActionResult ForgotPassword()
|
||||
public async Task<IActionResult> ForgotPassword()
|
||||
{
|
||||
if (User.Identity.IsAuthenticated)
|
||||
ViewBag.UserEmail = ( await _dbContext.Users.SingleAsync(
|
||||
u => u.Id == User.GetUserId()
|
||||
) ).Email;
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue