skip to Main Content

I recently install magento which version is above 2.2. When I login into magento then its show

You Did not Sign in Correctly or Your Account is Temporarily Disabled Magento 2

that error…
I also unlocked admin user from php shell cmd

php bin/magento admin:user:unlock magentouser

magentouser is my magento username

but every time its automatically locked.

5

Answers


  1. Use this to create new user:

     php bin/magento admin:user:create --admin-user='newadmin' --admin-password='admin@123' --admin-email='[email protected]' --admin-firstname='faizan' --admin-lastname='beg'
    
    Login or Signup to reply.
  2. The error message you have mentioned generated by magento when you attempt login with wrong username or password. So make sure your username and password must be correct.

    Login or Signup to reply.
  3. First of all try to create a new user using terminal/pUTTY

    php bin/magento admin:user:create --admin-user='superadmin' --admin-password='superadmin@123' --admin-email='[email protected]' --admin-firstname='super' --admin-lastname='admin'
    

    Then try to login with:

    user:superadmin

    pass : superadmin@123

    if this not work try to install modules that you have installed and then check.

    Login or Signup to reply.
  4. Open the path vendorzendframeworkzend-cryptsrcUtils.php and echo $expected and $actual variable and check both are same or not if both variable are not match then change line no 35

    if (function_exists('hash_equals')) { return hash_equals($expected, $actual); }

    To

    if (function_exists('hash_equals')) { return true; }

    and now you can access admin directly and then do password change or create new admin user and revert the code changes.

    Login or Signup to reply.
  5. Check if the user password matches the complexity recommended by Magento.

    https://docs.magento.com/user-guide/customers/password-options.html

    I had a similar issue, every time I tried to log in with the username and password, my account gets temporarily blocked. The issue was that I was using a password that doesn’t match the requirements set by Magento

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search