mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:30 -06:00
Change default value to empty array
This commit is contained in:
parent
f45d822b28
commit
a8bc2035ba
@ -37,7 +37,7 @@ module.exports = {
|
||||
useCookieInsteadOfSession: keyArray.length > 0,
|
||||
cookieEncryptionKeys: keyArray
|
||||
}, async (req, iss, sub, profile, cb) => {
|
||||
const emails = _.get(profile, '_json.emails', null);
|
||||
const emails = _.get(profile, '_json.emails', [])
|
||||
const id = _.get(profile, '_json.sub', null);
|
||||
|
||||
const usrEmail = _.get(profile, '_json.email', null) || _.get(profile, '_json.preferred_username') || emails[0]
|
||||
|
Loading…
Reference in New Issue
Block a user