This commit is contained in:
2018-09-26 22:03:21 +00:00
parent c6ef933c99
commit 07e1f8b94a
4 changed files with 16 additions and 13 deletions

View File

@@ -233,7 +233,7 @@ namespace AyaNova.Util
u.OwnerId = 1;
var p = new Bogus.Person();
u.Name = p.FullName;
u.Salt = Hasher.GenerateSalt();
// u.Salt = Hasher.GenerateSalt();
if (login != null)
{
u.Login = login;
@@ -241,10 +241,11 @@ namespace AyaNova.Util
}
else
u.Login = p.FirstName;
if (password != null)
u.Password = Hasher.hash(u.Salt, password);
u.Password = password;//u.Password = Hasher.hash(u.Salt, password);
else
u.Password = Hasher.hash(u.Salt, u.Login);
u.Password = u.Login;//u.Password = Hasher.hash(u.Salt, u.Login);
u.Roles = roles;
u.LocaleId = ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID;
u.UserType = userType;