File tree Expand file tree Collapse file tree 4 files changed +1
-20
lines changed
Expand file tree Collapse file tree 4 files changed +1
-20
lines changed Original file line number Diff line number Diff line change 1- from allauth .account .adapter import DefaultAccountAdapter
21from allauth .socialaccount .adapter import DefaultSocialAccountAdapter
32
43
5- class DjangoSnippetsAccountAdapter (DefaultAccountAdapter ):
6- def is_open_for_signup (self , request ):
7- """Disabling common signup completely"""
8- return False
9-
10-
114class DjangoSnippetsSocialAccountAdapter (DefaultSocialAccountAdapter ):
125 def is_open_for_signup (self , request , sociallogin ):
136 """
Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ def user_url(user):
143143ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"
144144ACCOUNT_LOGOUT_ON_GET = True
145145ACCOUNT_USERNAME_MIN_LENGTH = 3
146- ACCOUNT_ADAPTER = "djangosnippets.adapters.DjangoSnippetsAccountAdapter"
147146SOCIALACCOUNT_ADAPTER = "djangosnippets.adapters.DjangoSnippetsSocialAccountAdapter"
148147SOCIALACCOUNT_AUTO_SIGNUP = False
149148SOCIALACCOUNT_LOGIN_ON_GET = True
Original file line number Diff line number Diff line change 77{% block content %}
88< div class ="w-[40rem] flex flex-col items-center justify-center mx-auto p-8 font-common shadow-sign-content rounded-lg ">
99 < h3 > Sign In</ h3 >
10- < p > Don't have an account? < a class ="underline text-base-green-600 hover:text-base-orange-400 "> Sign Up</ a > </ p >
10+ < p > Don't have an account? < a href =" {{ signup_url }} " class ="underline text-base-green-600 hover:text-base-orange-400 "> Sign Up</ a > </ p >
1111 {% include "socialaccount/snippets/login_extra.html" %}
1212 < form class ="login flex flex-col items-center w-[80%] " method ="POST " action ="{% url 'account_login' %} ">
1313 {% csrf_token %}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments