* Added Authentication
This commit is contained in:
14
OrdersManagement/Models/ChangePasswordModel.cs
Normal file
14
OrdersManagement/Models/ChangePasswordModel.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user