示例#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());
        }