From 0540b0775d162b13c383b698cd338c8c861ac384 Mon Sep 17 00:00:00 2001 From: Pitu Date: Mon, 30 Jan 2017 05:16:08 -0300 Subject: [PATCH] Fixed wrong error text --- controllers/authController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/authController.js b/controllers/authController.js index 2773abe..0b398a1 100644 --- a/controllers/authController.js +++ b/controllers/authController.js @@ -37,7 +37,7 @@ authController.register = function(req, res, next){ if(password === undefined) return res.json({ success: false, description: 'No password provided' }) 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) return res.json({ success: false, description: 'Password must have 6-64 characters' })