From c83d2446639fca93360beacb9d6b841ed684816c Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 7 Oct 2021 17:30:34 +0200 Subject: [PATCH] change of strategies --- InvenTree/InvenTree/forms.py | 9 --------- InvenTree/InvenTree/settings.py | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/InvenTree/InvenTree/forms.py b/InvenTree/InvenTree/forms.py index 028fba433b..22dd34a9aa 100644 --- a/InvenTree/InvenTree/forms.py +++ b/InvenTree/InvenTree/forms.py @@ -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 diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index ed018f1f3d..a07324ec84 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -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', }