fix datetime error
This commit is contained in:
parent
ff3d4b3824
commit
b1d13a591d
@ -43,6 +43,8 @@ namespace BusinessLogic.BusinessLogic
|
||||
}
|
||||
// Хешируем пароль
|
||||
model.PasswordHash = PasswordHasher.Hash(model.Password!);
|
||||
model.Birthday = model.Birthday.ToUniversalTime();
|
||||
|
||||
var user = _userStorage.Insert(model);
|
||||
if (user is null)
|
||||
{
|
||||
@ -103,6 +105,7 @@ namespace BusinessLogic.BusinessLogic
|
||||
_validate(model);
|
||||
|
||||
model.PasswordHash = PasswordHasher.Hash(model.Password!);
|
||||
model.Birthday = model.Birthday.ToUniversalTime();
|
||||
var user = _userStorage.Update(model);
|
||||
if (user is null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user