Skip to main content

Reset Password

Password strength meter​

When a new password is typed on a ChurchCRM page — the page the password-reset email link opens, the page you are sent to when a password change is required, and My Account → Change Password — a Password strength meter appears under the field as you type. It rates the password you are typing and measures it against the minimum password length your church has set, so a password that is too short is flagged before you save.

MySQL Client direct DB intervention​

This section uses SQL statements that need to be executed in a tool such as phpMyAdmin in the same database configured for ChurchCRM. Alternatively, if you have command line access to your database, log into the ChurchCRM database using the mysql command line tool, e.g.:

mysql --user=ccrmDBusername --password=ccrmDBpassword ccrmDB

Use this only when you cannot sign in and no other administrator can open System Users and choose Change Password or Reset Password via Email.

New passwords are stored with PHP's bcrypt hash. MySQL cannot write that hash. The statements below write the older SHA-256 form ChurchCRM still accepts. The next successful sign-in replaces it with bcrypt. MySQL has no SHA256() function. Use SHA2(..., 256). The value is the password followed by that account's person id, with nothing between them.

Replace SECRET_PASSWORD with the password you want, and replace both 1 values with the person id of the account you are resetting. The username must be the one on System Users. A new installation's administrator is admin, person id 1.

Do not use a password containing a single quote (') or a backslash (\). A quote ends the SQL string early, so the statement fails. A backslash is read as an escape character, so the stored hash no longer matches the password you type and sign-in fails.

Option 1. Set a password and sign in with it​

UPDATE `user_usr` SET
`usr_Password` = SHA2(CONCAT('SECRET_PASSWORD', usr_per_ID), 256),
`usr_NeedPasswordChange` = 0,
`usr_FailedLogins` = 0
WHERE usr_per_ID = 1
AND usr_UserName = 'admin';

Sign in with the password you put in place of SECRET_PASSWORD. This account is not asked to change it.

This reset changes only the password. The account's API key is not changed — not by the statement, and not by the move to bcrypt at sign-in — so a key that may have leaked stays valid. If that is a concern, sign in and choose Regenerate on My Account → API Access to issue a new key and invalidate the old one.

Option 2. Reset the admin user to the installation default​

This works only when that account's person id is 1. The hash below is changeme followed by 1. See FAQs. Nothing else in the database changes.

UPDATE `user_usr` SET
`usr_Password` = '4bdf3fba58c956fc3991a1fde84929223f968e2853de596e49ae80a91499609b',
`usr_NeedPasswordChange` = 1,
`usr_FailedLogins` = 0
WHERE usr_per_ID = 1
AND usr_UserName = 'admin';

Sign in as admin with password changeme. ChurchCRM asks for a new password at that sign-in.

Can't find what you need? Ask in Discord, or open an issue on the ChurchCRM repository.