7лаба небуквенных символов
This commit is contained in:
parent
e7c191437a
commit
bf9c48b0e7
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user