From bf9c48b0e750eb00d6923ed2b72ad1515172b7f4 Mon Sep 17 00:00:00 2001 From: Timourka Date: Sun, 5 May 2024 17:40:48 +0400 Subject: [PATCH] =?UTF-8?q?7=D0=BB=D0=B0=D0=B1=D0=B0=20=D0=BD=D0=B5=D0=B1?= =?UTF-8?q?=D1=83=D0=BA=D0=B2=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20=D1=81=D0=B8?= =?UTF-8?q?=D0=BC=D0=B2=D0=BE=D0=BB=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AutomobilePlantBusinessLogic/BusinessLogics/ClientLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutomobilePlant/AutomobilePlantBusinessLogic/BusinessLogics/ClientLogic.cs b/AutomobilePlant/AutomobilePlantBusinessLogic/BusinessLogics/ClientLogic.cs index a1c975f..b65ad0b 100644 --- a/AutomobilePlant/AutomobilePlantBusinessLogic/BusinessLogics/ClientLogic.cs +++ b/AutomobilePlant/AutomobilePlantBusinessLogic/BusinessLogics/ClientLogic.cs @@ -105,7 +105,7 @@ namespace AutomobilePlantBusinessLogic.BusinessLogics { throw new ArgumentException("Некорретно введен email клиента", nameof(model.Email)); } - if (!Regex.IsMatch(model.Password, @"^(?=.*\d)(?=.*[^\d\s]).+$")) + if (!Regex.IsMatch(model.Password, @"^(?=.*\d)(?=.*\W)(?=.*[^\d\s]).+$")) { throw new ArgumentException("Некорректно введен пароль клиента", nameof(model.Password)); }