assign right user level on user create
This commit is contained in:
parent
c4a08c794c
commit
d583686ba9
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ export default class UserService {
|
||||||
}
|
}
|
||||||
|
|
||||||
const user = new User();
|
const user = new User();
|
||||||
|
user.UserLevel = UserLevel.User;
|
||||||
user.Username = username;
|
user.Username = username;
|
||||||
user.PasswordSalt = PasswordUtility.GenerateSalt();
|
user.PasswordSalt = PasswordUtility.GenerateSalt();
|
||||||
user.PasswordHash = await PasswordUtility.HashPassword(user.PasswordSalt, password);
|
user.PasswordHash = await PasswordUtility.HashPassword(user.PasswordSalt, password);
|
||||||
|
|
Loading…
Reference in a new issue