diff --git a/src/server/router/users_router.js b/src/server/router/users_router.js index e871351..ba91322 100755 --- a/src/server/router/users_router.js +++ b/src/server/router/users_router.js @@ -110,7 +110,7 @@ router.post('/', async (req, res) => { if (!tools.isAlphaNumericAndSpecialCharacter(body.username) || body.email.length < 6 || - body.username.length < 6 || body.password.length < 6) { + body.username.length < 5 || body.password.length < 5) { await tools.snooze(5000); console.log('Username non valido in Registrazione: ' + body.username); res.status(400).