示例#1
0
        public async Task <IActionResult> Logout()
        {
            await _signInManager.SignOutAsync();

            return(RedirectToAction("Index", new
            {
                success = 1
            }));
        }
示例#2
0
        public async Task <IActionResult> Logout()
        {
            await _passwordlessSignInManager.SignOutAsync();

            return(RedirectToAction("Index", new
            {
                success = "You have been logged out."
            }));
        }