aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Pages/Login.cshtml.cs
blob: 90948b69ab8e45aa69f14f892b4d1ee99a59a7b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
namespace I2R.Storage.Api.Pages;

public class Login : PageModel
{
    public ActionResult OnGet() {
        if (User.Identity?.IsAuthenticated ?? false) {
            return Redirect("/home");
        }

        return Page();
    }
}