Skip to content

Commit

Permalink
[FIX] Even TypeErrors with SAML (#10475)
Browse files Browse the repository at this point in the history
  • Loading branch information
graywolf336 authored Apr 17, 2018
1 parent 79c023e commit 6c45df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/meteor-accounts-saml/saml_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ SAML.prototype.validateResponse = function(samlResponse, relayState, callback) {
attributes.forEach(function(attribute) {
const value = self.getElement(attribute, 'AttributeValue');
if (typeof value[0] === 'string') {
profile[attribute.$.Name] = value[0];
profile[attribute.$.Name.value] = value[0];
} else {
profile[attribute.$.Name] = value[0]._;
profile[attribute.$.Name.value] = value[0]._;
}
});
}
Expand Down

0 comments on commit 6c45df6

Please sign in to comment.