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

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

In this article, we are going to learn how to solve below error while logging in Magento Admin Panel,

 “you did not sign in correctly or your account is temporarily disabled”

 

This error occurs due to Magento 2’s security system. Magento 2 will temporarily disable accounts that do not meet it’s password complexity requirements.

By default, in Magento 2, the password that meets security requirement must consist of:

  1. Uppercase letters
  2. Lowercase letters
  3. Numeric
  4. Special characters
  5. Minimum of 8 characters

The following are the solutions to this issue. Try any of them to see if it works for you.

Solution 1: Unlock the Account

Magento sometimes locks an account for security purposes. In this case, you can unlock it by going to your Magento 2 root folder in the command or terminal and run below command:

php bin/magento admin:user:unlock <username>

Example: php bin/magento admin:user:unlock admin

 

Solution2:-

Go to localhost/phpmyadmin/  on your browser and select your Magento 2 database.

After that use this syntax to change Magento 2 password using Mysql command

SET @salt = MD5(UNIX_TIMESTAMP());
UPDATE admin_user SET `password` = CONCAT(SHA2(CONCAT(@salt, 'NewP@ssword'), 256), ':', @salt, ':1') WHERE username = 'adminusername';
Replace:
  • NewP@ssword with  your desired password (must meet Magento 2 security requirement)
  • adminusernamewith your admin account username

EX:-

SET @salt = MD5(UNIX_TIMESTAMP());

UPDATE admin_user SET `password` = CONCAT(SHA2(CONCAT(@salt, 'Admin@123456'), 256), ':', @salt, ':1') WHERE username = 'admin';

After running the command above, your admin account will be updated with the new password you set in CONCAT(SHA2(CONCAT(@salt, 'NewP@ssword'), 256)
Now you can login to your account normally.

Solution 3: Create a New Admin Account

If none of the above solutions work, create a new admin account. Run the command below to do so.

php bin/magento admin:user:create --admin-user="username" --admin-password="mypassword" --admin-email="thecoachsmb@gmail.com" --admin-firstname="Admin" --admin-lastname="Admin"

php bin/magento admin:user:create --admin-user="admin" --admin-password="Admin@123456" --admin-email="thecoachsmb@gmail.com" --admin-firstname="Admin" --admin-lastname="Admin"

Cheers !!

Solution 4:

Perform following steps:-

    • Remove semicolon from the beginning of the line ;extension=sodium from php.ini which enables it.
    • Copy C:\xampp\php\libsodium.dll to C:\xampp\apache\bin\
    • Restart Apache means stop and start Apache.

Solution 5:

Go to: vendor\magento\framework\View\Element\Template\File

Edit Validator.php using a text editor and find this line:

instead of

strpos($realPath, $directory)

use

strpos($path, $directory)

Save the File.

Then,

Open up app/etc/di.xml in the editor,

– Find the path “Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink” and replace to “Magento\Framework\App\View\Asset\MaterializationStrategy\Copy”

Save the file

 

That’s it.

Happy Learning !!

Thank You !!

Sonal Motghare-Balpande

About Sonal Motghare-Balpande Sonal Motghare-Balpande is an eCommerce technology professional with 14+ years of experience working with Magento, PHP, Shopify, WooCommerce and other eCommerce technologies. Through TheCoachSMB, she shares practical insights on eCommerce technology, Magento, SEO, performance, development and platform decisions—helping developers, business owners and eCommerce professionals understand complex technology and make better decisions. Her focus is simple: make eCommerce technology easier to understand, help people make informed decisions, and avoid costly technical mistakes. Have a question about Magento or eCommerce? If you're dealing with a similar technology challenge or trying to make an eCommerce decision, feel free to ask Sonal. Connect with Sonal- WhatsApp: +91 702-050-0374 Email: support@thecoachsmb.com

One thought on “Solved- The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.”

  1. Hi

    I tried all three possible solutions suggested by you but still I am getting same error while login on admin panel.
    and i am using server in Filezilla .
    Could you please help me here?

  2. Hi

    I tried all three possible solutions suggested by you but still I am getting same error while login on admin panel.

    Could you please help me here?

    Regards,
    Ravi Ranjan

    1. Perform following steps:-

      1. Remove semicolon from the beginning of the line ;extension=sodium from php.ini which enables it.
      2. Copy C:\xampp\php\libsodium.dll to C:\xampp\apache\bin\
      3. Restart Apache means stop and start Apache.

      That’s it.
      Thank You !!

Leave a Reply

Your email address will not be published. Required fields are marked *

Select your currency
USD United States (US) dollar