Skip to content

Instantly share code, notes, and snippets.

@dharma017
Last active August 20, 2024 08:40
Show Gist options
  • Save dharma017/4981f5e8b2975ab7b980cd274c5e797c to your computer and use it in GitHub Desktop.
Save dharma017/4981f5e8b2975ab7b980cd274c5e797c to your computer and use it in GitHub Desktop.
Update User Password Hash for Craft CMS
<?php
echo password_hash('passwordhere', PASSWORD_DEFAULT, ['cost'=> 13]);
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