Add Redirect If the User is Authenticated in Home Screen

This commit is contained in:
MahanCh
2025-07-29 14:06:38 +03:30
parent 3ea80c1344
commit 5ca32bbbaf

View File

@@ -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()