Norio Suzuki 8 лет назад
Родитель
Сommit
0ad3673069
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/routes/me.js

+ 1 - 1
lib/routes/me.js

@@ -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', {});