Resetting user passwords through database

The following php script will allow you to regain access and change your password if your password has expired. Note it does not work if you’ve forgotten your password. You should remove this file once you’ve run it. Place it in on the server where you have openemr installed. If you have it installed in a different location, change line 9.

Change the $currentPassword variable to what your password is currently set to.

Run it as the following:

php unlock_admin.php EnterNewAdminPasswordHere

This script is put on the docker machines by default in the latest versions of OpenEMR under the /root/ directory of the server.

1 Like