From aea5d62556a833e9267726adc36413ed986457c3 Mon Sep 17 00:00:00 2001 From: Daniel Mora <38921751+ww-daniel-mora@users.noreply.github.com> Date: Sat, 4 Sep 2021 16:08:55 -0400 Subject: [PATCH] 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 --- models/users.js | 1 - 1 file changed, 1 deletion(-) diff --git a/models/users.js b/models/users.js index cd1c674c8..8633d502c 100644 --- a/models/users.js +++ b/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) {