diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-06-17 20:21:44 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-06-17 20:21:44 +0300 |
commit | f245b6b7faa29b4f276527daca48c305fe9689c1 (patch) | |
tree | 01db3252bba00b5a892731e606b0bf346ff69379 /packages/wekan-accounts-cas/cas_server.js | |
parent | ad87f9ff4e50e8b042735ad383c5c193e30fc9aa (diff) | |
download | wekan-f245b6b7faa29b4f276527daca48c305fe9689c1.tar.gz wekan-f245b6b7faa29b4f276527daca48c305fe9689c1.tar.bz2 wekan-f245b6b7faa29b4f276527daca48c305fe9689c1.zip |
Update users.js etc with global search replace, to try to fix selecting correct user.
Thanks to xet7 !
Diffstat (limited to 'packages/wekan-accounts-cas/cas_server.js')
-rw-r--r-- | packages/wekan-accounts-cas/cas_server.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/wekan-accounts-cas/cas_server.js b/packages/wekan-accounts-cas/cas_server.js index 15c1b174..c13a6df1 100644 --- a/packages/wekan-accounts-cas/cas_server.js +++ b/packages/wekan-accounts-cas/cas_server.js @@ -229,13 +229,13 @@ const casValidate = (req, ticket, token, service, callback) => { if (attrs.debug) { console.log(`CAS response : ${JSON.stringify(result)}`); } - let user = Meteor.users.findOne({ 'username': options.username }); + let user = Users.findOne({ 'username': options.username }); if (! user) { if (attrs.debug) { console.log(`Creating user account ${JSON.stringify(options)}`); } const userId = Accounts.insertUserDoc({}, options); - user = Meteor.users.findOne(userId); + user = Users.findOne(userId); } if (attrs.debug) { console.log(`Using user account ${JSON.stringify(user)}`); |