Skip to content

Commit

Permalink
fix: add social logins to the signup screen
Browse files Browse the repository at this point in the history
Now both /accounts/signup/ and /accounts/login/ should have social
buttons.
  • Loading branch information
danihodovic committed May 21, 2024
1 parent 2f5e7a3 commit 0a90731
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion allauth_ui/templates/account/signup.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "account/base.html" %}
{% load i18n %}
{% load i18n allauth_ui %}
{% block head_title %}
{% translate "Sign up" %}
{% endblock %}
Expand All @@ -15,4 +15,8 @@ <h1 class="mb-5 text-3xl text-center">Sign up</h1>
</form>
<a class="self-center pt-8 text-xs text-blue-400 justify-self-center hover:text-blue-500"
href="{{ login_url }}">{% translate "Already have an account? Sign in." %}</a>
{% check_allauth_socialaccount_installed as is_allauth_socialaccount_installed %}
{% if is_allauth_socialaccount_installed %}
{% include "socialaccount/snippets/social_login.html" %}
{% endif %}
{% endblock %}

0 comments on commit 0a90731

Please sign in to comment.