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

Closed
TImourka wants to merge 9 commits from laba7complicated into laba6complicated
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));
}