blob: d4ee7d744a132d339c94ac936040bb4deb484764 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace VSH.Pages;
public class LoggInn : PageModel
{
public ActionResult OnGet() {
if (User.Identity?.IsAuthenticated ?? false) {
if (Request.Query.ContainsKey("ReturnUrl")) {
return Redirect(Request.Query["ReturnUrl"]);
}
return Redirect("/kontoret");
}
return Page();
}
}
|