From d583686ba9df5c3122712ea3f68a2daceb02ecfb Mon Sep 17 00:00:00 2001 From: Holly Date: Wed, 9 Oct 2024 11:43:15 +0100 Subject: [PATCH] assign right user level on user create --- server/services/UserService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/services/UserService.ts b/server/services/UserService.ts index a44828e..c0ebb42 100644 --- a/server/services/UserService.ts +++ b/server/services/UserService.ts @@ -80,6 +80,7 @@ export default class UserService { } const user = new User(); + user.UserLevel = UserLevel.User; user.Username = username; user.PasswordSalt = PasswordUtility.GenerateSalt(); user.PasswordHash = await PasswordUtility.HashPassword(user.PasswordSalt, password);