Merge pull request #141 from N6UDP/patch-1

Fix typo in email fallback for SAML
This commit is contained in:
Paul Fitzpatrick 2022-02-20 15:11:00 -05:00 committed by GitHub
commit e73e74b8ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ export class SamlConfig {
// available. Otherwise we use user.attributes which has the form {Name: [Value]}.
const fname = samlUser.given_name || samlUser.attributes.FirstName || '';
const lname = samlUser.surname || samlUser.attributes.LastName || '';
const email = samlUser.email || samlUser.nameId;
const email = samlUser.email || samlUser.name_id;
const profile = {
email,
name: `${fname} ${lname}`.trim(),