1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

Update register.ts

This commit is contained in:
Matthew 2021-07-22 01:35:24 +00:00 committed by GitHub
parent c687d9074f
commit ec9671a429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,