Sfoglia il codice sorgente

BugFix: return when createUserByEmailAndPassword failed

Yuki Takei 8 anni fa
parent
commit
f07286dfbb
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      lib/models/user.js

+ 1 - 0
lib/models/user.js

@@ -685,6 +685,7 @@ module.exports = function(crowi) {
     newUser.save(function(err, userData) {
       if (err) {
         debug('createUserByEmailAndPassword failed: ', err);
+        return callback(err);
       }
 
       if (userData.status == STATUS_ACTIVE) {