Forums / General Questions / Admin Password Not Resetting

Admin Password Not Resetting

Locked
Results 1 to 10 of 10
This thread is locked. New replies are disabled.
29 Aug 2008, 23:09
#1
lazy_programmer avatar

lazy_programmer

New Zenner

Join Date:
Aug 2008
Posts:
6
Plugin Contributions:
0

Admin Password Not Resetting

Hi,

I have been through a number of threads on the forum, but I have not been able to find a solution to my problem.

I couldn't remember my admin password, so I clicked resend password. I received a password by email, but this did not work.

I have deleted the admin table and added another user as per the instructions on the Wiki page, but this does not work.

I have no prefix on my tables.

When an incorrect username and password is specified, a message is returned stating that is the case. When what should be the correct username and password is used, the page just reloads asking for the username and password.

Any ideas as to what I can do to sort this?

Thanks.
30 Aug 2008, 02:53
#2
daneh avatar

daneh

Zen Follower

Join Date:
Dec 2007
Posts:
268
Plugin Contributions:
0

Re: Admin Password Not Resetting

Try this FAQ: https://www.zen-cart.com/tutorials/index.php?article=2

When it says your username is admin and password is admin, that is EXACTLY what it means. remember to type them correctly.
31 Aug 2008, 11:44
#3
lazy_programmer avatar

lazy_programmer

New Zenner

Join Date:
Aug 2008
Posts:
6
Plugin Contributions:
0

Re: Admin Password Not Resetting

I have tried this several times, and I am still unable to login.

Could it have anything to do with the hosting?
31 Aug 2008, 15:54
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Admin Password Not Resetting

You could rebuild the Admin table with the default settings via phpMyAdmin ...

First run this to remove and reset the structure:
DROP TABLE IF EXISTS admin;
CREATE TABLE admin (
  admin_id int(11) NOT NULL auto_increment,
  admin_name varchar(32) NOT NULL default '',
  admin_email varchar(96) NOT NULL default '',
  admin_pass varchar(40) NOT NULL default '',
  admin_level tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (admin_id),
  KEY idx_admin_name_zen (admin_name)
) TYPE=MyISAM;


Next run this to set the login to Admin admin:
INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);


NOTE: this will remove all existing Admin logins in the admin table, both good and bad ...

Remember, the Login is now:
Admin
admin

WARNING: be sure to reset the Admin login as soon as you have access for the Admin password and email address ...
31 Aug 2008, 16:38
#5
lazy_programmer avatar

lazy_programmer

New Zenner

Join Date:
Aug 2008
Posts:
6
Plugin Contributions:
0

Re: Admin Password Not Resetting

I have tried this several times without success.

I have completely removed the admin table and rebuilt it using the above sql and then created the admin account again.

If I use "Admin" and "admin" the page reloads, if I use anything else I get the message that the username and password is not correct.
31 Aug 2008, 16:51
#6
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Admin Password Not Resetting

What version of Zen Cart are you using?
31 Aug 2008, 17:20
#7
lazy_programmer avatar

lazy_programmer

New Zenner

Join Date:
Aug 2008
Posts:
6
Plugin Contributions:
0

Re: Admin Password Not Resetting

I am using version 1.3.5.
31 Aug 2008, 17:37
#8
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Admin Password Not Resetting

Has your host recently made any changes to your server?

(Sounds like you may need to upgrade)
31 Aug 2008, 18:07
#9
lazy_programmer avatar

lazy_programmer

New Zenner

Join Date:
Aug 2008
Posts:
6
Plugin Contributions:
0

Re: Admin Password Not Resetting

Not sure, will contact the host and ask them if they know anything about it.
31 Aug 2008, 23:28
#10
lazy_programmer avatar

lazy_programmer

New Zenner

Join Date:
Aug 2008
Posts:
6
Plugin Contributions:
0

Re: Admin Password Not Resetting

My host said my sessions.php file was out of date, and this was causing the problem. All sorted now.