fix: redirect link on successful authentication
This commit is contained in:
parent
00b5986080
commit
7c536032b6
TicketOffice/Pages/Auth
@ -45,7 +45,7 @@ public class LoginModel : PageModel
|
||||
{
|
||||
HttpContext.Session.SetInt32("UserId", User.First().Id);
|
||||
|
||||
return RedirectToPage("Account/Index");
|
||||
return RedirectToPage("/Account/Index");
|
||||
}
|
||||
|
||||
return Page();
|
||||
|
@ -57,7 +57,7 @@ public class RegistrationModel : PageModel
|
||||
|
||||
HttpContext.Session.SetInt32("UserId", User.First().Id);
|
||||
|
||||
return RedirectToPage("Account/Index");
|
||||
return RedirectToPage("/Account/Index");
|
||||
}
|
||||
|
||||
return Page();
|
||||
|
Loading…
Reference in New Issue
Block a user