File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ from allauth .account .forms import LoginForm
2+
3+
4+ class DjangoSnippetsLoginForm (LoginForm ):
5+
6+ def _setup_password_field (self ):
7+ super ()._setup_password_field ()
8+ # Disable allauth's automatically set help_text
9+ self .fields ["password" ].help_text = None
Original file line number Diff line number Diff line change @@ -144,8 +144,9 @@ def user_url(user):
144144ACCOUNT_LOGOUT_ON_GET = True
145145ACCOUNT_USERNAME_MIN_LENGTH = 3
146146ACCOUNT_FORMS = {
147- "login" : "django.contrib.auth. forms.AuthenticationForm " ,
147+ "login" : "base. forms.DjangoSnippetsLoginForm " ,
148148}
149+ ACCOUNT_SESSION_REMEMBER = True
149150SOCIALACCOUNT_ADAPTER = "djangosnippets.adapters.DjangoSnippetsSocialAccountAdapter"
150151SOCIALACCOUNT_AUTO_SIGNUP = False
151152SOCIALACCOUNT_LOGIN_ON_GET = True
You can’t perform that action at this time.
0 commit comments