Last active
August 20, 2024 08:40
-
-
Save dharma017/4981f5e8b2975ab7b980cd274c5e797c to your computer and use it in GitHub Desktop.
Update User Password Hash for Craft CMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo password_hash('passwordhere', PASSWORD_DEFAULT, ['cost'=> 13]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var/www/craft_project | |
php craft users/list-admins | |
php craft users/set-password [email protected] --password=passwordhere |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment