Manually set password in the database

If they admin and other superuser passwords were forgotten is there a way to set the password in the userinfo table (version 2.40)? I have tried setting a password after generating a bcrypt hash with cost of 10 and it does not seem to work. I recall this used to work in older versions when it was in the users table. Is there another field that needs to be updated?

1 Like

Hi @nmartilik1

Welcome to the DHIS2 Community ! :tada:

Please check out the solution by @MiltonIsaya in this topic post: Account locked after failed login attempts - #8 by MiltonIsaya

I think it’s relevant and might help you. :pray: