Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Reset Admin password in Magento 2

bin/magento admin:user:create --admin-user="admin" --admin-password="admin123" --admin-email="testme@testme.com" --admin-firstname="Amin" --admin-lastname="Admin"
Comment

reset admin password magento 2

UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxYourNewPassword', 256), ':xxxxxxx:1') WHERE username = 'admin';

The xxxxxxx character sequence is a cryptographic salt, it is saved in appetcenv.php file

<?php
...
  'crypt' => [
      'key' => 'f323fedda15153db7783e4610137a581'
  ],
...
?>
Comment

PREVIOUS NEXT
Code Example
Php :: php return multiple variables from function 
Php :: route list laravel 8 
Php :: get data from stdclass object php 
Php :: API call in PHP using cURL 
Php :: parameter to laravel seeder 
Php :: laravel scope 
Php :: create seed file from db laravel 
Php :: how to delete database in phpmyadmin 
Php :: dynamic variable in php 
Php :: how to catch duplicate entry to database in laravel 
Php :: connect php to db 
Php :: codeigniter crud generator 
Php :: php string concatenation 
Php :: What’s New in PHP 8 
Php :: API json data show in laravel 
Php :: eloquent relationships 
Php :: laravel + join 2 eloquent queries 
Php :: php array_push 
Php :: laravel debugbar not showing 
Php :: laravel dingo api response 
Php :: PHP metaphone — Calculate the metaphone key of a string 
Php :: laravel collection zip 
Php :: compare in wp 
Php :: how to remove index.php in codeigniter 3 route 
Php :: check if product has crosssell woocommerce 
Php :: pass variable in laravel ancher tag laravel 8 
Php :: YYYYMMDDTHHMMSSZ php 
Php :: Header requirements for new plugin in wordpress 
Php :: php mysql remove by timestamp older than a month 
Php :: list custom post in wp 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =