Пример #1
0
        public async Task <IActionResult> OnGetAsync()
        {
            if (!await _manageAccountService.CheckUserHasPassword(User))
            {
                return(RedirectToPage("./SetPassword"));
            }

            return(Page());
        }
Пример #2
0
 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());
        }