summaryrefslogtreecommitdiff
path: root/Models/LoginModel.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-03-06 07:41:35 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-03-06 07:41:35 +0300
commit0c4d13caed53b2702eef41461d0c8a4b25df48f6 (patch)
tree6fb6d2d54cedce1c204fb30b75f4d470fbf7ee83 /Models/LoginModel.cs
parentcdd58a8f518d037658518c233e74beea22d03906 (diff)
Base authorization/authentification
Diffstat (limited to 'Models/LoginModel.cs')
-rw-r--r--Models/LoginModel.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Models/LoginModel.cs b/Models/LoginModel.cs
new file mode 100644
index 0000000..93485c8
--- /dev/null
+++ b/Models/LoginModel.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel.DataAnnotations;
+
+namespace MyDarling.Models;
+public class LoginModel
+{
+ [Required]
+ public string? Name { get; set; }
+
+ [Required]
+ public string? Password { get; set; }
+
+ public string ReturnUrl { get; set; } = "/Bundle";
+} \ No newline at end of file