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.

Revisions

  1. dharma017 revised this gist Aug 20, 2024. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions with-php-command
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    cd /var/www/craft_project
    php craft users/list-admins
    php craft users/set-password [email protected] --password=passwordhere
  2. dharma017 revised this gist Aug 20, 2024. 2 changed files with 2 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions Update User Password Hash for Craft CMS
    Original file line number Diff line number Diff line change
    @@ -1,4 +0,0 @@
    <?php
    // Enter your code here, enjoy!
    // run in online php code editor: https://sandbox.onlinephpfunctions.com/
    echo password_hash('8ZLnEdOY$hhe', PASSWORD_DEFAULT, ['cost'=> 13]);
    2 changes: 2 additions & 0 deletions update-craft-cms-user-password
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    <?php
    echo password_hash('passwordhere', PASSWORD_DEFAULT, ['cost'=> 13]);
  3. dharma017 created this gist Aug 20, 2024.
    4 changes: 4 additions & 0 deletions Update User Password Hash for Craft CMS
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    <?php
    // Enter your code here, enjoy!
    // run in online php code editor: https://sandbox.onlinephpfunctions.com/
    echo password_hash('8ZLnEdOY$hhe', PASSWORD_DEFAULT, ['cost'=> 13]);