* Added Authentication

This commit is contained in:
2025-02-21 09:59:50 +01:00
parent ed5b5634fd
commit 6774311433
20 changed files with 468 additions and 30 deletions

View File

@@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
namespace OrdersManagement.Models;
public class ChangePasswordModel
{
[Required(ErrorMessage = "Nowe hasło jest wymagane")]
[StringLength(100, MinimumLength = 6, ErrorMessage = "Hasło musi mieć od 6 do 100 znaków")]
public string NewPassword { get; set; }
[Required(ErrorMessage = "Potwierdzenie hasła jest wymagane")]
[Compare("NewPassword", ErrorMessage = "Hasła muszą się zgadzać")]
public string ConfirmPassword { get; set; }
}