change of strategies

This commit is contained in:
Matthias 2021-10-07 17:30:34 +02:00
parent b4d9f0ff7e
commit c83d244663
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 1 additions and 10 deletions

View File

@ -252,15 +252,6 @@ class CustomSignupForm(SignupForm):
return cleaned_data
class CustomResetPasswordForm(ResetPasswordForm):
"""
Override to use dynamic settings
"""
def save(self, request):
email_address = super().save(request)
return email_address
class RegistratonMixin:
"""
Mixin to check if registration should be enabled

View File

@ -676,7 +676,7 @@ ACCOUNT_FORMS = {
'add_email': 'allauth.account.forms.AddEmailForm',
'change_password': 'allauth.account.forms.ChangePasswordForm',
'set_password': 'allauth.account.forms.SetPasswordForm',
'reset_password': 'InvenTree.forms.CustomResetPasswordForm',
'reset_password': 'allauth.account.forms.ResetPasswordForm',
'reset_password_from_key': 'allauth.account.forms.ResetPasswordKeyForm',
'disconnect': 'allauth.socialaccount.forms.DisconnectForm',
}