mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
change of strategies
This commit is contained in:
parent
b4d9f0ff7e
commit
c83d244663
@ -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
|
||||
|
@ -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',
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user