public async Task <IActionResult> ResetPassword(string email) { var link = $"{Request.Scheme}://{Request.Host}{Request.PathBase}" + "/Account/ResetPasswordFinish"; var u = await _appUsersService.FindByEmailAsync(email); if (u is not null) { await _appUsersService.SendPasswordResetEmail(u, link); } return(RedirectToAction(nameof(ResetPasswordSent))); }