Removed redundant check for empty email address field
This commit is contained in:
@ -82,7 +82,6 @@ exports.postForgot = function(req, res) {
|
||||
workflow.on('validate', function() {
|
||||
|
||||
// Check for form errors
|
||||
req.assert('email', 'Email cannot be blank.').notEmpty();
|
||||
req.assert('email', 'Please enter a valid email address.').isEmail();
|
||||
var errors = req.validationErrors();
|
||||
|
||||
|
Reference in New Issue
Block a user