Esempio n. 1
0
        public async Task <IActionResult> Logout()
        {
            await _signInManager.SignOutAsync();

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

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