mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
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:
parent
8629537c3f
commit
aea5d62556
1 changed files with 0 additions and 1 deletions
|
@ -1274,7 +1274,6 @@ if (Meteor.isServer) {
|
|||
const userCount = Users.find().count();
|
||||
if (userCount === 0) {
|
||||
user.isAdmin = true;
|
||||
return user;
|
||||
}
|
||||
|
||||
if (user.services.oidc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue