assign right user level on user create

This commit is contained in:
Holly Stubbs 2024-10-09 11:43:15 +01:00
parent c4a08c794c
commit d583686ba9
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -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);