inflate OpenID UID to case-sensitive on lookup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Garrett Mills 2020-10-19 09:39:28 -05:00
parent 6b3339a883
commit 084ec7bbc1
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -19,6 +19,7 @@ class CoreIDAdapter {
} }
if ( payload.uid ) { if ( payload.uid ) {
payload.originalUid = payload.uid
payload.uid = payload.uid.toLowerCase() payload.uid = payload.uid.toLowerCase()
} }
@ -38,6 +39,11 @@ class CoreIDAdapter {
).limit(1).next() ).limit(1).next()
if (!result) return undefined if (!result) return undefined
if ( result?.payload?.originalUid ) {
result.payload.uid = result.payload.originalUid
}
return result.payload return result.payload
} }
@ -58,6 +64,11 @@ class CoreIDAdapter {
).limit(1).next() ).limit(1).next()
if (!result) return undefined if (!result) return undefined
if ( result?.payload?.originalUid ) {
result.payload.uid = result.payload.originalUid
}
return result.payload return result.payload
} }