Skip to content

Commit 91c2fd9

Browse files
committed
Fix SAMLIdentityProvider backend filling user details with None.
It's a general convention that this project follows to use '' instead of `None`. Most of of the other backends use ''.
1 parent 8dc31ed commit 91c2fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

social_core/backends/saml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def get_attr(self, attributes, conf_key, default_attribute):
7979
if len(value):
8080
value = value[0]
8181
else:
82-
value = None
82+
value = ''
8383
return value
8484

8585
@property

0 commit comments

Comments
 (0)