public async Task <IActionResult> OnGetAsync() { if (!await _manageAccountService.CheckUserHasPassword(User)) { return(RedirectToPage("./SetPassword")); } return(Page()); }
public async Task <IActionResult> OnGetAsync() { return((await _manageAccountService.CheckUserHasPassword(User)) ? RedirectToPage("./ChangePassword") : (IActionResult)Page()); }
public async Task <IActionResult> OnGet() { RequirePassword = await _manageAccountService.CheckUserHasPassword(User); return(Page()); }