|
@@ -90,7 +90,7 @@ module.exports = function(crowi, app) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
User.findOne({email: email}, (err, existingUserData) => {
|
|
User.findOne({email: email}, (err, existingUserData) => {
|
|
|
- if (existingUserData !== null) {
|
|
|
|
|
|
|
+ if (existingUserData) {
|
|
|
debug('Email address was duplicated');
|
|
debug('Email address was duplicated');
|
|
|
req.form.errors.push('It can not be changed to that mail address');
|
|
req.form.errors.push('It can not be changed to that mail address');
|
|
|
return res.render('me/index', {});
|
|
return res.render('me/index', {});
|