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 :: laravel collection pluck 
Php :: php get day of week 
Php :: laravel eloquent search json column 
Php :: update session laravel 
Php :: php rand vs mt_rand 
Php :: how to add javascript to a php file 
Php :: laravel check if string is url 
Php :: laravel enum validation 
Php :: create a new project from cli laravel 
Php :: or where in codeigniter 
Php :: laravel 8 blade get days and hours ago 
Php :: php foreach alternative syntax 
Php :: name of today php 
Php :: add execute time php 
Php :: Object of class IlluminateDatabaseEloquentBuilder could not be converted to string 
Php :: format date laravel timestamp view 
Php :: join array of strings php 
Php :: brew reinstall php 7.4 
Php :: input file accept jpg jpeg png php 
Php :: get current authenticated user laravel 
Php :: thousand seperator php 
Php :: wordpress theme development boilerplate 
Php :: abort in laravel 
Php :: Copy file from one directory to another Laravel 
Php :: string match percentage php 
Php :: php check version 
Php :: if url has certain code then php 
Php :: php - How do I calculate the percentage of a number? 
Php :: wordpress admin url 
Php :: laravel set field unique 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =