From 80e7e7939c1ab35da9ece1cd9e6e1002e4e50d3a Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Fri, 20 Feb 2026 22:28:33 +0100 Subject: [PATCH] fix(CreateUser): Await password hashing in toEntity method --- src/models/actions/create/CreateUser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/actions/create/CreateUser.ts b/src/models/actions/create/CreateUser.ts index 422664d..11b80b2 100644 --- a/src/models/actions/create/CreateUser.ts +++ b/src/models/actions/create/CreateUser.ts @@ -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;