Skip to content

Commit

Permalink
Fix password changes for those with no password.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmptrluke committed Mar 5, 2024
1 parent 997bf79 commit 9fcf1a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/accounts/forms/allauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ def __init__(self, *args, **kwargs):
)


__all__ = ['ChangePasswordForm', 'ResetPasswordForm', 'LoginForm', 'SignupForm']
__all__ = ['ChangePasswordForm', 'ResetPasswordForm', 'SetPasswordForm', 'LoginForm', 'SignupForm']
1 change: 1 addition & 0 deletions foxtail/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
ACCOUNT_FORMS = {
'signup': 'apps.accounts.forms.SignupForm',
'change_password': 'apps.accounts.forms.ChangePasswordForm',
'set_password': 'apps.accounts.forms.SetPasswordForm',
'reset_password': 'apps.accounts.forms.ResetPasswordForm',
'login': 'apps.accounts.forms.LoginForm'
}
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ python-magic-bin==0.4.14;platform_system=="Windows"
argon2-cffi==23.1.0
bleach==6.0.0
crispy-bootstrap5==0.7
django==3.2.21
django==3.2.24
django-allauth==0.57.0
django-allauth-2fa==0.11.1
django-anymail[mailgun]==10.1
Expand Down

0 comments on commit 9fcf1a8

Please sign in to comment.