Upload files to 'ShipyardBusinessLogic'

This commit is contained in:
Ivan_Starostin 2024-06-02 18:47:45 +04:00
parent 6233d1ff5e
commit ba64de53d8

View File

@ -111,10 +111,10 @@ namespace ShipyardBusinessLogic
{
throw new ArgumentException("Некорретно введен email клиента", nameof(model.Email));
}
//if (!Regex.IsMatch(model.Password, @"^(?=.*\d)(?=.*\W)(?=.*[^\d\s]).+$"))
//{
// throw new ArgumentException("Некорректно введен пароль клиента", nameof(model.Password));
//}
if (!Regex.IsMatch(model.Password, @"^(?=.*\d)(?=.*\W)(?=.*[^\d\s]).+$"))
{
throw new ArgumentException("Некорректно введен пароль клиента", nameof(model.Password));
}
_logger.LogInformation("Client. ClientFIO:{ClientFIO}." +
"Email:{ Email}. Password:{ Password}. Id: { Id} ", model.ClientFIO, model.Email, model.Password, model.Id);
var element = _clientStorage.GetElement(new ClientSearchModel