Commit 1219c6bd authored by Michal Čihař's avatar Michal Čihař

Strip whitespace here as well

parent 1ceae1ef
...@@ -105,7 +105,7 @@ def user_full_name(strategy, details, response, user=None, *args, **kwargs): ...@@ -105,7 +105,7 @@ def user_full_name(strategy, details, response, user=None, *args, **kwargs):
Update user full name using data from provider. Update user full name using data from provider.
""" """
if user: if user:
full_name = details.get('fullname', '') full_name = details.get('fullname', '').strip()
if (not full_name if (not full_name
and ('first_name' in details or 'last_name' in details)): and ('first_name' in details or 'last_name' in details)):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment