0.8.41 change profile validation

This commit is contained in:
SDE
2023-12-15 15:56:51 +03:00
parent 36fd9599af
commit f8d29d80b7
2 changed files with 9 additions and 2 deletions

View File

@@ -239,7 +239,8 @@ def change_profile_confirm_ajax(request):
kwargs = {
'not_required_password': True,
'not_required_agreement': True,
'not_required_email': True
'not_required_email': True,
'create_new_account': False,
}
form = RegistrationForm(data, **kwargs)
if not form.is_valid():