Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

propose forcing lowercase usernames

Thomas Camlong400fa3d48084
diff --git a/packages/api/src/router/user.ts b/packages/api/src/router/user.ts
index 364a3ff82..e57fd2fa3 100644
--- a/packages/api/src/router/user.ts
+++ b/packages/api/src/router/user.ts
@@ -127,10 +127,12 @@ const createUser = async (
const salt = await createSalt();
const hashedPassword = await hashPassword(input.password, salt);
+ const username = input.username.toLowerCase();
+
const userId = createId();
await db.insert(schema.users).values({
id: userId,
- name: input.username,
+ name: username,
password: hashedPassword,
salt,
});