Commit 39408e24 authored by Michal Čihař's avatar Michal Čihař

Provide fallback icon for unknown auth methods

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 5af8f59d
......@@ -51,8 +51,12 @@ def auth_name(auth):
auth_data = SOCIALS[auth]
if 'fa_icon' in auth_data:
return mark_safe(FA_SOCIAL_TEPMPLATE.format(**auth_data))
if 'fl_icon' in auth_data:
elif 'fl_icon' in auth_data:
return mark_safe(FL_SOCIAL_TEPMPLATE.format(**auth_data))
return mark_safe(auth_data['name'])
return auth
auth = auth_data['name']
return mark_safe(FA_SOCIAL_TEPMPLATE.format(
fa_icon='key',
name=auth,
))
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