From 5f604b3052dab1d51dc130df2470bf330b283ec6 Mon Sep 17 00:00:00 2001 From: ivar Date: Tue, 19 Mar 2024 01:02:22 +0100 Subject: Max lenghts on db schema Use latest temporal from cdn Implement majority of translation functionality Major refinements/bugs --- code/api/Pages/Login.cshtml.cs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (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 90948b6..5726535 100644 --- a/code/api/Pages/Login.cshtml.cs +++ b/code/api/Pages/Login.cshtml.cs @@ -1,12 +1,10 @@ -namespace I2R.Storage.Api.Pages; +namespace Quality.Storage.Api.Pages; -public class Login : PageModel +public class Login : BasePageModel { - public ActionResult OnGet() { - if (User.Identity?.IsAuthenticated ?? false) { - return Redirect("/home"); - } - - return Page(); - } -} \ No newline at end of file + public ActionResult OnGet() { + ViewData["Title"] = "Login"; + if (IsAuthenticated) return Redirect("/home"); + return Page(); + } +} -- cgit v1.3