Add Redirect If the User is Authenticated in Home Screen
This commit is contained in:
@@ -17,8 +17,11 @@ namespace ServiceHost.Pages
|
||||
_accountApplication = accountApplication;
|
||||
}
|
||||
|
||||
public void OnGet()
|
||||
public IActionResult OnGet()
|
||||
{
|
||||
if(_authHelper.IsAuthenticated())
|
||||
return Redirect("/login");
|
||||
return Page();
|
||||
}
|
||||
|
||||
public IActionResult OnGetLogout()
|
||||
|
||||
Reference in New Issue
Block a user