From 58ef5833b3f77f321c587dd86448c888029016ce Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Thu, 22 Dec 2022 14:44:26 +0100 Subject: feat: Many things - Working Login/Logout - Groundwork for web components - Loading web-components with version tag - Load temporal-polyfill globally --- code/api/Pages/Login.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/api/Pages/Login.cshtml.cs') diff --git a/code/api/Pages/Login.cshtml.cs b/code/api/Pages/Login.cshtml.cs index 7d97ff1..90948b6 100644 --- a/code/api/Pages/Login.cshtml.cs +++ b/code/api/Pages/Login.cshtml.cs @@ -3,7 +3,7 @@ namespace I2R.Storage.Api.Pages; public class Login : PageModel { public ActionResult OnGet() { - if (User.Identity.IsAuthenticated) { + if (User.Identity?.IsAuthenticated ?? false) { return Redirect("/home"); } -- cgit v1.3