fix(CreateUser): Await password hashing in toEntity method
This commit is contained in:
@@ -109,7 +109,7 @@ export class CreateUser {
|
||||
newUser.lastname = this.lastname
|
||||
newUser.uuid = crypto.randomUUID()
|
||||
newUser.phone = this.phone
|
||||
newUser.password = Bun.password.hash(this.password + newUser.uuid);
|
||||
newUser.password = await Bun.password.hash(this.password + newUser.uuid);
|
||||
newUser.groups = await this.getGroups();
|
||||
newUser.enabled = this.enabled;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user