using System.ComponentModel.DataAnnotations; using Kreta.BusinessLogic.Classes; using Kreta.Resources; using Kreta.Web.Attributes; using static Kreta.Core.Constants; namespace Kreta.Web.Areas.Adminisztracio.Models { public class ProfilModel { public bool JelszoValtoztatasNemLehetseges { get; set; } [KretaRequired(StringResourcesId = 2575 /*Jelenlegi jelszó megadása kötelező!*/)] [KretaDisplayName(1826)] /*Jelenlegi jelszó*/ [DataType(DataType.Password)] public string JelenlegiJelszo { get; set; } [KretaRequired(StringResourcesId = 2576 /*Új jelszó megadása kötelező!*/)] [KretaDisplayName(1827)] /*Új jelszó*/ [DataType(DataType.Password)] [StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))] public string UjJelszo { get; set; } [KretaRequired(StringResourcesId = 2577 /*Új jelszó megerősítésének megadása kötelező!*/)] [KretaDisplayName(1828)] /*Új jelszó megerősítése*/ [DataType(DataType.Password)] [StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))] [Compare("UjJelszo", ErrorMessageResourceName = nameof(ErrorResource.JelszoNemEgyezikMeg), ErrorMessageResourceType = typeof(ErrorResource))] public string UjJelszoMegerositese { get; set; } public bool IsElerhetosegAdatokSzerkeszthetoek { get; set; } } }