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)); }