Explorar o código

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 %!s(int64=3) %!d(string=hai) anos
pai
achega
aea5d62556
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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) {