How to Reset Admin password in Magento 2.3.7 and 2.4?

The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.

This means your admin account is disabled, so you can unlock it via command line:

php bin/magento admin:user:unlock ADMINUSERNAME

We may have forgotten the admin passwords, how to reset it? Here I share 2 useful methods:

Method A: Rest the admin password via PHPMyAdmin:

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 app\etc\env.php file

 [
        'frontName' => 'admin_glasses'
    ],
    'queue' => [
        'consumers_wait_for_messages' => 1
    ],
    'crypt' => [
        'key' => 'howtobuycheapglassesonline'    //cryptographic salt
    ],

Method B: Create a new admin account via command line, and use the new admin account to reset the old admin account password.