ПИбд-21 Кувшинов Тимур простая 7 лаба #24

Closed
TImourka wants to merge 3 commits from laba7 into laba6
Showing only changes of commit bf9c48b0e7 - Show all commits

View File

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