aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.ts
diff options
context:
space:
mode:
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;