hotfix v2
This commit is contained in:
parent
ae8d08537e
commit
8aa137b27d
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ export default (app, { log, db, sessions }) => {
|
|||
const { username, password } = req.body;
|
||||
|
||||
// h usernames
|
||||
if(/^[a-z0-9_-]{4,64}$/i.test(username)) return render(res, "signup", "passwords dont match");
|
||||
if(!/^[a-z0-9_-]{3,64}$/i.test(username)) return render(res, "signup", "bad username");
|
||||
|
||||
// make sure the passwords match!
|
||||
if(password !== req.body.firmpass) return render(res, "signup", "passwords dont match");
|
||||
|
|
Loading…
Reference in a new issue