summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthew <dev@mtbk.me>2021-07-22 01:35:24 +0000
committerGitHub <noreply@github.com>2021-07-22 01:35:24 +0000
commitec9671a42908586a05357e5386b737a6c7752354 (patch)
treeb44c27416303f176f5f810a4b1b83cdb91b3757a /src
parentMake password limit 72 to match discord's limit (diff)
downloadserver-ts-ec9671a42908586a05357e5386b737a6c7752354.tar.xz
Update register.ts
Diffstat (limited to 'src')
-rw-r--r--src/routes/auth/register.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/auth/register.ts b/src/routes/auth/register.ts

index 25c7b3dd..41798552 100644 --- a/src/routes/auth/register.ts +++ b/src/routes/auth/register.ts
@@ -16,8 +16,8 @@ router.post( check({ username: new Length(String, 2, 32), // TODO: check min password length in config - // prevent Denial of Service with max length of 64 chars - password: new Length(String, 8, 64), + // prevent Denial of Service with max length of 72 chars + password: new Length(String, 8, 72), consent: Boolean, $email: new Length(Email, 5, 100), $fingerprint: String,