Skip to content

Commit

Permalink
Fix SAMLIdentityProvider backend filling user details with None.
Browse files Browse the repository at this point in the history
It's a general convention that this project follows to
use '' instead of `None`. Most of of the other backends use ''.
  • Loading branch information
chdinesh1089 committed Jul 7, 2020
1 parent 8dc31ed commit 1731bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social_core/backends/saml.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_attr(self, attributes, conf_key, default_attribute):
if len(value):
value = value[0]
else:
value = None
value = ''
return value

@property
Expand Down

0 comments on commit 1731bb0

Please sign in to comment.