Small fixes around handling olm users

This commit is contained in:
Owen
2025-11-03 16:22:13 -08:00
parent 2c488baa80
commit 8356c5933f
2 changed files with 34 additions and 15 deletions

View File

@@ -229,6 +229,16 @@ export async function createClient(
);
}
const secretHash = await hashPassword(secret);
await trx.insert(olms).values({
olmId,
secretHash,
name,
clientId: newClient.clientId,
dateCreated: moment().toISOString()
});
return response<CreateClientResponse>(res, {
data: newClient,
success: true,