Update register.ts
This commit is contained in:
parent
c687d9074f
commit
ec9671a429
@ -16,8 +16,8 @@ router.post(
|
|||||||
check({
|
check({
|
||||||
username: new Length(String, 2, 32),
|
username: new Length(String, 2, 32),
|
||||||
// TODO: check min password length in config
|
// TODO: check min password length in config
|
||||||
// prevent Denial of Service with max length of 64 chars
|
// prevent Denial of Service with max length of 72 chars
|
||||||
password: new Length(String, 8, 64),
|
password: new Length(String, 8, 72),
|
||||||
consent: Boolean,
|
consent: Boolean,
|
||||||
$email: new Length(Email, 5, 100),
|
$email: new Length(Email, 5, 100),
|
||||||
$fingerprint: String,
|
$fingerprint: String,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user