mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 22:39:36 +02:00
fixed oicd not working on frontend login page
This commit is contained in:
parent
dbd417ca87
commit
2b031f51ac
1 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ class EnabledSocialProvidersView(APIView):
|
|||
providers = []
|
||||
for provider in social_providers:
|
||||
if provider.provider == 'openid_connect':
|
||||
new_provider = f'oidc/{provider.client_id}'
|
||||
new_provider = f'oidc/{provider.provider_id}'
|
||||
else:
|
||||
new_provider = provider.provider
|
||||
providers.append({
|
||||
|
@ -204,4 +204,4 @@ class DisablePasswordAuthenticationView(APIView):
|
|||
user.disable_password = False
|
||||
user.save()
|
||||
return Response({"detail": "Password authentication enabled."}, status=status.HTTP_200_OK)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue