Admin Password

Locked

Started by telepatico on 29 Dec 2006, 10:31 PM · Views: 2,496

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
29 Dec 2006, 10:31 PM
#1
telepatico avatar

telepatico

New Zenner

Join Date:
Jun 2005
Posts:
17
Plugin Contributions:
0

Admin Password

I set up a working Zencart in a private hosting company, and it is working great. Now, I did set up another in my localhost, installed, but when I went to log in on the admin login page, it did not worked. I found a thread for the PHP 5.2.0 bug, and changed as per instructions.

Now, before fixing the bug, I resend password few times, since I was not receiving any e-mail every time I hit the resend password link. I know the PHP bug issue has been fixed because now it prompts me for the admin username and password, but I did never received such passwords.

Question: is there any file containing the password for the admin login page?
should I look on the database tables by using phpmyadmin?

Thanks.

29 Dec 2006, 10:38 PM
#2
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Admin Password

The admin passwords are stored in the database but they're encrypted.

Can you login to admin?

29 Dec 2006, 10:43 PM
#3
telepatico avatar

telepatico

New Zenner

Join Date:
Jun 2005
Posts:
17
Plugin Contributions:
0

Re: Admin Password

No, I can not login into the admin area. What encryption type is used? MD5, SHA1 etc?

If not the solution, then what could be my next step?

already tried md5 and sha1, no luck. Maybe there is another way.

Thanks

29 Dec 2006, 10:49 PM
#4
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Admin Password

There's lots of posts on how to do this on the forum - here's one example of the solution:

http://www.zen-cart.com/forum/showthread.php?t=40953

29 Dec 2006, 11:09 PM
#5
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Admin Password

Or (more clearly) the actual solution posted by Ajeh:

(Quote ...)
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:

     Code:
```php
      INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1); 
```WARNING: be sure to reset the Admin login as soon as you have access for the Admin password and email address ...  
(/quote)
29 Dec 2006, 11:26 PM
#6
telepatico avatar

telepatico

New Zenner

Join Date:
Jun 2005
Posts:
17
Plugin Contributions:
0

Re: Admin Password

Thanks to all of you, the following helped:

After several things, I tried the post about resetting to Admin, admin, but without dropping the admin table. In other words, I only tried the second step on the post for creating a table, just reset to Admin, admin, then went to log in on the Admin login page, then created a new admin user, then deleted the Admin, admin user, then log in again with the new user, and everything is working fine.

I am using Xamp with the latest PHP 5.2.0, changed the PHP code regarding sessions on the PHP bug. Now everything is working fine, even with SSL on local host.

I am very happy with the help I have obtained on this forum, and the fast answer. Of course I will be more than happy to donate soon. I dont mind any remainders, since I am a very busy student and a father.

30 Dec 2006, 4:46 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Admin Password

Thanks for the update that this was able to get you back on track ...

We appreciate and look forward to your support of Zen Cart! :smile:

Your support helps keep Zen Cart developing further and further and keeps your online shop running now, and in the future ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!