Skip to content

Commit 54a883d

Browse files
committed
Correct validation message.
1 parent 72563e6 commit 54a883d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/AuthController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ exports.register = [
8585
* @returns {Object}
8686
*/
8787
exports.login = [
88-
body("email").isLength({ min: 1 }).trim().withMessage("Email name must be specified.")
88+
body("email").isLength({ min: 1 }).trim().withMessage("Email must be specified.")
8989
.isEmail().withMessage("Email must be a valid email address."),
9090
body("password").isLength({ min: 1 }).trim().withMessage("Password must be specified."),
9191
sanitizeBody("email").escape(),

0 commit comments

Comments
 (0)