瀏覽代碼

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();
     if (userCount === 0) {
       user.isAdmin = true;
-      return user;
     }
 
     if (user.services.oidc) {