From f2f04f8a148ed4108a7f1bb8840c7e3ffd1cb08b Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Fri, 1 Apr 2022 14:55:10 +0300 Subject: [PATCH] style: update models validation --- ...=> 20220401115407_InitialCreate.Designer.cs} | 2 +- ...reate.cs => 20220401115407_InitialCreate.cs} | 0 TicketOffice/Models/User.cs | 6 +++--- TicketOffice/wwwroot/db/TicketOffice-SQLite.db | Bin 45056 -> 0 bytes 4 files changed, 4 insertions(+), 4 deletions(-) rename TicketOffice/Migrations/{20220331173119_InitialCreate.Designer.cs => 20220401115407_InitialCreate.Designer.cs} (99%) rename TicketOffice/Migrations/{20220331173119_InitialCreate.cs => 20220401115407_InitialCreate.cs} (100%) delete mode 100644 TicketOffice/wwwroot/db/TicketOffice-SQLite.db diff --git a/TicketOffice/Migrations/20220331173119_InitialCreate.Designer.cs b/TicketOffice/Migrations/20220401115407_InitialCreate.Designer.cs similarity index 99% rename from TicketOffice/Migrations/20220331173119_InitialCreate.Designer.cs rename to TicketOffice/Migrations/20220401115407_InitialCreate.Designer.cs index 0144171..98a6755 100644 --- a/TicketOffice/Migrations/20220331173119_InitialCreate.Designer.cs +++ b/TicketOffice/Migrations/20220401115407_InitialCreate.Designer.cs @@ -11,7 +11,7 @@ using TicketOffice.Data; namespace TicketOffice.Migrations { [DbContext(typeof(TicketOfficeContext))] - [Migration("20220331173119_InitialCreate")] + [Migration("20220401115407_InitialCreate")] partial class InitialCreate { protected override void BuildTargetModel(ModelBuilder modelBuilder) diff --git a/TicketOffice/Migrations/20220331173119_InitialCreate.cs b/TicketOffice/Migrations/20220401115407_InitialCreate.cs similarity index 100% rename from TicketOffice/Migrations/20220331173119_InitialCreate.cs rename to TicketOffice/Migrations/20220401115407_InitialCreate.cs diff --git a/TicketOffice/Models/User.cs b/TicketOffice/Models/User.cs index 45f826e..27e55c7 100644 --- a/TicketOffice/Models/User.cs +++ b/TicketOffice/Models/User.cs @@ -33,13 +33,13 @@ public class User ErrorMessage = "E-mail невалідний")] public string Email { get; set; } - [MaxLength(32, ErrorMessage = "Пароль не може бути більше 32 символів"), - MinLength(8, ErrorMessage = "Пороль не може бути менше 8 символів")] + [MaxLength(32, ErrorMessage = "Пароль має бути менше 32 символів"), + MinLength(8, ErrorMessage = "Пороль має бути більше 8 символів")] [Required(ErrorMessage = "Поле має бути заповненим")] [Display(Name = "Пароль")] [DataType(DataType.Password)] [RegularExpression(@"^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$", - ErrorMessage = "Пароль має містити 1 маленьку та велику літери, 1 цифру, 1 спеціальний символ (#, $, @ та ін.), бути написаний латиницею та мати більше 8 символів")] + ErrorMessage = "Проль має містити великі та малі латинські літери, цифри та спеціальні знаки (@, $, % та ін.)")] public string Password { get; set; } diff --git a/TicketOffice/wwwroot/db/TicketOffice-SQLite.db b/TicketOffice/wwwroot/db/TicketOffice-SQLite.db deleted file mode 100644 index 0d697eaca335d686bcc77ed624a195cbb7cb43ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 45056 zcmeI*Pi)&%90zd!Nu4;OHAqxZFT;yKTDCP!nr>M$CM~4y7OhRYG=)xR3SMhAYpJt2 z4p5{?tb?66PCIZJ2#FgACWg>p9Jqjl1darkoi+&}A-I5q*ntD@Jv(cXC2Ns}w!-(d zevO~s-_Or+z#ULkj^hNfZ6RATg~*FQbBBE8TVD5i zDRA+bv;E3#E*yG~8~8zae_*Kpt4H45l9#W@$7GHaB0&HG5P$##AOL}`0t;a&GCahu znAVc3tv)9OBZGtd8;`ND(6G@h*d7u;ni~&@*I>PH6!c{y zs+P0`5>-F4ek8KCZN8*eO6FPx5_bRKgmGH8ow`jDH_VuTj zEDZ$Rq;^?9J{y=O0&2tA9D_2uK;7VDq8IsLT0$gYid zYn+?sgOPNaU(K_*m&@AZw0XkT9kXiH4w*HlYOi!H6x!F;wGO!mcx%1WCB3k=MXd9x z+M}PAbI)JYtX*BIFFMZ}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