Updated message if user with that email already exists

This commit is contained in:
Sahat Yalkabov
2014-01-31 22:18:57 -05:00
parent 9da5a60ff3
commit e177ac10de

View File

@ -90,7 +90,7 @@ exports.postSignup = function(req, res, next) {
user.save(function(err) {
if (err) {
if (err.code === 11000) {
req.flash('errors', { msg: 'User already exists.' });
req.flash('errors', { msg: 'User with that email already exists.' });
}
return res.redirect('/signup');
}