mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Fix customer being created with name "None" via SSO
This commit is contained in:
@@ -733,7 +733,7 @@ class SSOLoginReturnView(RedirectBackMixin, View):
|
|||||||
scheme = PERSON_NAME_SCHEMES.get(name_scheme)
|
scheme = PERSON_NAME_SCHEMES.get(name_scheme)
|
||||||
for fname, label, size in scheme['fields']:
|
for fname, label, size in scheme['fields']:
|
||||||
if fname in profile:
|
if fname in profile:
|
||||||
name_parts[fname] = profile[fname]
|
name_parts[fname] = profile[fname] or ''
|
||||||
if len(name_parts) == 1 and profile.get('name'):
|
if len(name_parts) == 1 and profile.get('name'):
|
||||||
name_parts = {'_legacy': profile['name']}
|
name_parts = {'_legacy': profile['name']}
|
||||||
customer = Customer(
|
customer = Customer(
|
||||||
|
|||||||
Reference in New Issue
Block a user