fix: redirect link on successful authentication

This commit is contained in:
cuqmbr 2022-04-02 14:17:14 +03:00
parent 00b5986080
commit 7c536032b6
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class LoginModel : PageModel
{ {
HttpContext.Session.SetInt32("UserId", User.First().Id); HttpContext.Session.SetInt32("UserId", User.First().Id);
return RedirectToPage("Account/Index"); return RedirectToPage("/Account/Index");
} }
return Page(); return Page();

View File

@ -57,7 +57,7 @@ public class RegistrationModel : PageModel
HttpContext.Session.SetInt32("UserId", User.First().Id); HttpContext.Session.SetInt32("UserId", User.First().Id);
return RedirectToPage("Account/Index"); return RedirectToPage("/Account/Index");
} }
return Page(); return Page();