diff options
| author | Adam Soltys <[email protected]> | 2026-01-19 00:27:30 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-01-19 00:27:30 +0000 |
| commit | 08d292474e8310a73fb28d35c500bd8063b73ca3 (patch) | |
| tree | 85eec91e754ad2a3b1c287bc2d2e72b226e9a1ec /lib | |
| parent | 3e42e1d062f75e850caf379902fcbcc9a5614f57 (diff) | |
| download | coinos-server-08d292474e8310a73fb28d35c500bd8063b73ca3.tar.gz coinos-server-08d292474e8310a73fb28d35c500bd8063b73ca3.zip | |
check username
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/register.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/register.ts b/lib/register.ts index 8b893d6c..a74ea640 100644 --- a/lib/register.ts +++ b/lib/register.ts @@ -21,6 +21,7 @@ export default async (user, ip) => { 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"); const id = v4(); user.id = id; |
