aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Pages/Login.cshtml.cs
blob: 7d97ff12715726f0e60eff72556b3ce3e740a1b2 (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) {
            return Redirect("/home");
        }

        return Page();
    }
}