Skip to content

A user with user.is_active set to true but registration_profile.activated set to false cannot reset their password #3247

@jwalgran

Description

@jwalgran

An invited user can skip over the standard account activation flow. This may be causing the discrepancy between the user.is_active field and the registration_profile.activated field.

user = User.objects.filter(email__iexact=form.cleaned_data['email'],
registrationprofile__activated=False)
if user.exists():
form.add_error(None, ValidationError(_('This account is inactive'),
code='inactive'))
return self.form_invalid(form)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions