registration: always mark new accounts as active (#23058)
This commit is contained in:
parent
33ffd4e42c
commit
dc17414245
|
@ -103,6 +103,7 @@ class RegistrationCompletionFormNoPassword(forms.BaseUserForm):
|
|||
|
||||
def save(self, commit=True):
|
||||
self.instance.email_verified = True
|
||||
self.instance.is_active = True
|
||||
user = super(RegistrationCompletionFormNoPassword, self).save(commit=commit)
|
||||
if commit and app_settings.A2_REGISTRATION_GROUPS:
|
||||
groups = []
|
||||
|
|
Loading…
Reference in New Issue