hotfix v2

This commit is contained in:
sample-text-here 2022-01-07 19:47:10 -08:00
parent ae8d08537e
commit 8aa137b27d

View file

@ -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");