mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Merge pull request #141 from N6UDP/patch-1
Fix typo in email fallback for SAML
This commit is contained in:
commit
e73e74b8ad
@ -183,7 +183,7 @@ export class SamlConfig {
|
|||||||
// available. Otherwise we use user.attributes which has the form {Name: [Value]}.
|
// available. Otherwise we use user.attributes which has the form {Name: [Value]}.
|
||||||
const fname = samlUser.given_name || samlUser.attributes.FirstName || '';
|
const fname = samlUser.given_name || samlUser.attributes.FirstName || '';
|
||||||
const lname = samlUser.surname || samlUser.attributes.LastName || '';
|
const lname = samlUser.surname || samlUser.attributes.LastName || '';
|
||||||
const email = samlUser.email || samlUser.nameId;
|
const email = samlUser.email || samlUser.name_id;
|
||||||
const profile = {
|
const profile = {
|
||||||
email,
|
email,
|
||||||
name: `${fname} ${lname}`.trim(),
|
name: `${fname} ${lname}`.trim(),
|
||||||
|
Loading…
Reference in New Issue
Block a user