-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure login page works without socialaccount (#47)
Fixes #44
- Loading branch information
1 parent
e142650
commit 91a5ccf
Showing
6 changed files
with
479 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
allauth_ui/templates/socialaccount/snippets/social_login.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% load socialaccount i18n %} | ||
{% get_providers as socialaccount_providers %} | ||
{% if socialaccount_providers %} | ||
<div class="flex items-center self-stretch justify-between pt-3 mt-3"> | ||
<hr class="w-full"> | ||
<span class="p-2 mb-1 text-gray-400">OR</span> | ||
<hr class="w-full"> | ||
</div> | ||
|
||
<p class="text-xs text-center text-gray-500">{% translate "Sign in with a third party" %}</p> | ||
|
||
{% include "socialaccount/snippets/provider_list.html" with process="login" %} | ||
{% include "socialaccount/snippets/login_extra.html" %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.