mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Fixed wrong error text
This commit is contained in:
parent
79fee8defd
commit
0540b0775d
@ -37,7 +37,7 @@ authController.register = function(req, res, next){
|
|||||||
if(password === undefined) return res.json({ success: false, description: 'No password provided' })
|
if(password === undefined) return res.json({ success: false, description: 'No password provided' })
|
||||||
|
|
||||||
if(username.length < 4 || username.length > 32)
|
if(username.length < 4 || username.length > 32)
|
||||||
return res.json({ success: false, description: 'Username must have 6-32 characters' })
|
return res.json({ success: false, description: 'Username must have 4-32 characters' })
|
||||||
if(password.length < 6 || password.length > 64)
|
if(password.length < 6 || password.length > 64)
|
||||||
return res.json({ success: false, description: 'Password must have 6-64 characters' })
|
return res.json({ success: false, description: 'Password must have 6-64 characters' })
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user