sources/oauth: slugify provider type instead of just lowercase

This commit is contained in:
Jens Langhammer
2020-02-23 13:53:16 +01:00
parent b2c10e2387
commit f4a676e2fb
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class OAuthSource(Source):
"passbook_sources_oauth:oauth-client-login",
kwargs={"source_slug": self.slug},
),
icon_path=f"passbook/sources/{self.provider_type.replace(' ', '-')}.svg",
icon_path=f"passbook/sources/{self.provider_type}.svg",
name=self.name,
)