aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-01-19 00:27:30 +0000
committerAdam Soltys <[email protected]>2026-01-19 00:27:30 +0000
commit08d292474e8310a73fb28d35c500bd8063b73ca3 (patch)
tree85eec91e754ad2a3b1c287bc2d2e72b226e9a1ec /routes/users.ts
parent3e42e1d062f75e850caf379902fcbcc9a5614f57 (diff)
downloadcoinos-server-08d292474e8310a73fb28d35c500bd8063b73ca3.tar.gz
coinos-server-08d292474e8310a73fb28d35c500bd8063b73ca3.zip
check username
Diffstat (limited to 'routes/users.ts')
-rw-r--r--routes/users.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/users.ts b/routes/users.ts
index 7c6d0938..bd2ffb42 100644
--- a/routes/users.ts
+++ b/routes/users.ts
@@ -201,6 +201,7 @@ export default {
if (!valid.test(username))
fail("Usernames can only have letters and numbers");
if (reserved.includes(username)) fail("Invalid username");
+ if (username?.includes("undefined")) fail("Invalid username");
let exists;