I just upgrade from Magento 1.9.3.3 (form key disabled) to 1.9.3.7. Now I cannot login to the backend. The error message is ‘You did not sign in correctly or your account is temporarily disabled.’
I tried to reset the cookie domain, clear the cache and session from both server and browser and still no luck.
There are many posts concerning magento 2, but far less talking about magento 1. Does someone with magento 1 had and solved this issue? Thanks for your help in advance!
6
Answers
After a bit of googling around I found there are many people having various versions of issues which all have the common root to 'session keys'.
Solution: go to 'System->configuration', in section (left menu) choose 'General->Web'. On the main content, go to 'Session cookie management'. All these parameters can be tweaked according to your needs. However, to solve the login problem, just change the cookie domain to '.example.com', replace the example with your domain name and the dot in the front of the string is important.
Explanation: During login, magento will lay 2 cookies (among other sessions). one is 'domain.com'=>value1, the other one is '.domain.com'=>value2.
The value1 should equal to value2. If they don't, the cannot login will happen. By setting the '.example.com' as the domain instead of 'example.com', Magento will somehow force set these 2 values equally.
I have problem with only Chrome, all the other browsers will give equal answer to the values. Could this be a Chrome thing?
Magento admin panel login message shows which are set in admin session. Magento 1.9.X
Mage::throwException()
not works for login message.So if you want to check the exact error(Event if wrong username & password) change in file
app/code/core/Mage/Admin/Model/Session.php
Every times show below message so instead of that set error message as below.
Check your
admin_role
DB table data against a backup. The data in mine got erased due to a DB server crash.This was the only way to resolve this issue for me.
@himansu answer led me to discover that the ReCaptcha extension I had installed and enabled for the admin login was causing the error. Disabling the extension from MySQL cleared up the problem and allowed me to login.
In my case, I went to the core_config_data table and set ‘aminvisiblecaptcha/backend/enabled’ to a value of ‘0’. This is a setting for Amasty’s Google ReCaptcha extension.
It occurrences when your username is blocked by many times of tries with wrong pass or other issues.
For me, I had a incredible cache, and I removed var/cache and var/full_page_cache, and tried to restart web server (nginx in my case).
So I had to debug, I found this class with authenticate method adminAuthenticate():
app/code/core/Enterprise/Pci/Model/Observer.php
PHP was bringing always wrong value with "first_failure" and "lock_expires" for correct register (my user).
So I just comment those lines, for clear the "trash":
And post again login, so that’s OK, and uncoment that lines. The problem did not occur anymore.
I have also faced this same issue on Magento 1.
It might be a database issue.
It might be some issue in the database. Check the “admin_user”, if the entry is missing for the same which you are trying then create the admin user by using below SQL query:
For more information, please refer to the below URL.
https://www.itechinsiders.com/magento-error-you-did-not-sign-correctly-or-your-account-is-temporarily-disabled/