소스 검색

Fix first user creation for via OIDC

When setting up a new deploy and registering the first user via OIDC no profile information would be populated. This also prevented updating profile information as the client would error when encountering a null email value. I manually tested this change against the OIDC use case, but, not others. This fix should address #2444
Daniel Mora 3 년 전
부모
커밋
aea5d62556
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      models/users.js

+ 0 - 1
models/users.js

@@ -1274,7 +1274,6 @@ if (Meteor.isServer) {
     const userCount = Users.find().count();
     const userCount = Users.find().count();
     if (userCount === 0) {
     if (userCount === 0) {
       user.isAdmin = true;
       user.isAdmin = true;
-      return user;
     }
     }
 
 
     if (user.services.oidc) {
     if (user.services.oidc) {