magento inability to log in with admin account

2019-09-06 10:20发布

问题:

My problem is that, i cant log into the Admin area of Magento with admin account. When i create dummy accounts, they log in just fine though.

Ive tried multiple "resolutions" but none work for me or arent applicable to my situation. I also tried one on here where you had to comment out certain lines but again, no good.

This is a new installation (2nd time) on my WAMP server and i access it via 127.0.0.1

The problem i get is that when i log in, i get a "invalid login or password" even though i know its correct.

i looked at the admin_users table and my account is in there (user/pass) but the pass is under some encryption...im goign to assume md5. I tried to change it manually and nothing.

i also tried the default "admin" username and "123123" pass but...the only way to log in is with an email so that didnt work.

Nothing i do works

the version im using is ver. 1.6.2.0

Any ideas /tips/changes/links etc ill gladly accept.

Thank you in advanced.

Mike

回答1:

If you reset the password manually through phpMyAdmin then be sure you set the field type to MD5.

Try running this query in phpMyAdmin under the SQL tab:

UPDATE admin_user SET password=CONCAT(MD5('qXpassword'), ':qX') WHERE username='admin';

Then go to your store's admin and login with admin and qXpassword

(from MagentoCommerce)



回答2:

Have you tried using a fake domain insted of 127? modify your hosts file to add something like:

127.0.0.1 magento.dev


标签: magento