Esempio n. 1
0
    public async Task <IActionResult> OnGet()
    {
        var user = await _userManager.GetUserAsync(User);

        if (user == null)
        {
            return(NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."));
        }

        RequirePassword = await _userManager.HasPasswordAsync(user);

        return(Page());
    }