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
This commit is contained in:
Daniel Mora 2021-09-04 16:08:55 -04:00 committed by GitHub
parent 8629537c3f
commit aea5d62556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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