rcpch / rcpch-audit-engine

Epilepsy12 Audit Platform
https://e12.rcpch.ac.uk/
GNU Affero General Public License v3.0
5 stars 5 forks source link

New user log in issue - New Platform #1021

Closed SAbdin93 closed 4 weeks ago

SAbdin93 commented 4 weeks ago

Hi,

A clinician has emailed to let us know that he is unable to set his password as his account has not been activated. When I have logged in to send him a password reset link I am unable to do so as it says he has not completed the sign up process. A small blue icon appears next to his name and I am not able to click onto his details.

image

Could you please advise?

Thanks,

Saleema

mbarton commented 4 weeks ago

Thanks for reporting @SAbdin93 I will contact you directly about this

mbarton commented 4 weeks ago

We don't have anything in the logs indicating how this user ended up unregistered, perhaps they were not receiving our email.

I've manually confirmed their email and set them as active so we can send a password reset link.

I couldn't work out how to do it in the Django admin so I ran the following Python code in the Django shell on the machine itself:

>>> user = Epilepsy12User.objects.filter(email = "<redacted_email>").first()
>>> user
<Epilepsy12User: <redacted name>
>>> user.is_active
False
>>> user.email_confirmed
False
>>> user.is_active = True
>>> user.email_confirmed = True
>>> user.save()
INFO [epilepsy12.signals:69] <redacted name> (<redacted email>) updated by None.