mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-06 07:10:28 +00:00
change of strategies
This commit is contained in:
parent
b4d9f0ff7e
commit
c83d244663
@ -252,15 +252,6 @@ class CustomSignupForm(SignupForm):
|
|||||||
return cleaned_data
|
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:
|
class RegistratonMixin:
|
||||||
"""
|
"""
|
||||||
Mixin to check if registration should be enabled
|
Mixin to check if registration should be enabled
|
||||||
|
@ -676,7 +676,7 @@ ACCOUNT_FORMS = {
|
|||||||
'add_email': 'allauth.account.forms.AddEmailForm',
|
'add_email': 'allauth.account.forms.AddEmailForm',
|
||||||
'change_password': 'allauth.account.forms.ChangePasswordForm',
|
'change_password': 'allauth.account.forms.ChangePasswordForm',
|
||||||
'set_password': 'allauth.account.forms.SetPasswordForm',
|
'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',
|
'reset_password_from_key': 'allauth.account.forms.ResetPasswordKeyForm',
|
||||||
'disconnect': 'allauth.socialaccount.forms.DisconnectForm',
|
'disconnect': 'allauth.socialaccount.forms.DisconnectForm',
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user