mirror of
https://github.com/wekan/wekan.git
synced 2026-02-28 10:54:07 +01: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 {
|
return {
|
||||||
serviceData: serviceData,
|
serviceData: serviceData,
|
||||||
|
|
@ -288,7 +290,7 @@ Meteor.methods({
|
||||||
if (propagateOidcData)
|
if (propagateOidcData)
|
||||||
{
|
{
|
||||||
users= Meteor.users;
|
users= Meteor.users;
|
||||||
user = users.findOne({'services.oidc.id': userId.toString()});
|
user = users.findOne({'services.oidc.id': userId});
|
||||||
|
|
||||||
if(user)
|
if(user)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue