Open jwalgran opened 6 years ago
This is also a problem for any account that was created from a mobile app, where we do not require email verification.
In the create_user
API view we need to set activated = True
on the registration profile similar to the way we set active = True
on the user model.
An invited user can skip over the standard account activation flow. This may be causing the discrepancy between the
user.is_active
field and theregistration_profile.activated
field.https://github.com/OpenTreeMap/otm-core/blob/7ea8b1f55e4388b89c0bce8ae7289f0766f8c77e/opentreemap/registration_backend/views.py#L211-L216