소스 검색

Merge pull request #3206 from salleman33/patch-2

Update users.js
Lauri Ojansivu 5 년 전
부모
커밋
c7a40784e7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      models/users.js

+ 2 - 1
models/users.js

@@ -946,7 +946,8 @@ if (Meteor.isServer) {
       existingUser.profile = user.profile;
       existingUser.profile = user.profile;
       existingUser.authenticationMethod = user.authenticationMethod;
       existingUser.authenticationMethod = user.authenticationMethod;
 
 
-      Meteor.users.remove({ _id: existingUser._id }); // remove existing record
+      Meteor.users.remove({ _id: user._id });
+      Meteor.users.remove({ _id: existingUser._id }); // is going to be created again
       return existingUser;
       return existingUser;
     }
     }