checkpoint
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace StatiKosev.Pages;
|
||||
|
||||
public class LoginModel : PageModel
|
||||
{
|
||||
[BindProperty(SupportsGet = true)]
|
||||
public string? ReturnUrl { get; set; }
|
||||
|
||||
public void OnGet()
|
||||
{
|
||||
if (!Url.IsLocalUrl(ReturnUrl)) ReturnUrl = "/";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user