mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Fix OIDC login loop for integer user ID.
Thanks to danielkaiser !
Fixes #4795,
related f2a92be01a
This commit is contained in:
parent
38e8aad9cf
commit
bc67b5c3bc
1 changed files with 4 additions and 2 deletions
|
@ -105,7 +105,9 @@ OAuth.registerService('oidc', 2, null, function (query) {
|
|||
});
|
||||
}
|
||||
|
||||
Meteor.call('groupRoutineOnLogin',serviceData, serviceData.id);
|
||||
// Fix OIDC login loop for integer user ID. Thanks to danielkaiser.
|
||||
// https://github.com/wekan/wekan/issues/4795
|
||||
Meteor.call('groupRoutineOnLogin',serviceData, ""+serviceData.id);
|
||||
|
||||
return {
|
||||
serviceData: serviceData,
|
||||
|
@ -288,7 +290,7 @@ Meteor.methods({
|
|||
if (propagateOidcData)
|
||||
{
|
||||
users= Meteor.users;
|
||||
user = users.findOne({'services.oidc.id': userId.toString()});
|
||||
user = users.findOne({'services.oidc.id': userId});
|
||||
|
||||
if(user)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue