2
0
Norio Suzuki 8 жил өмнө
parent
commit
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) => {
-        if (existingUserData !== null) {
+        if (existingUserData) {
           debug('Email address was duplicated');
           req.form.errors.push('It can not be changed to that mail address');
           return res.render('me/index', {});