Thread: Admin Password

Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2005
    Posts
    20
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: Admin Password

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

    Can you login to admin?

  3. #3
    Join Date
    Jun 2005
    Posts
    20
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: Admin Password

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

    (Quote ...)
    First run this to remove and reset the structure:

    PHP Code:
          DROP TABLE IF EXISTS admin;
    CREATE TABLE admin (
      
    admin_id int(11NOT NULL auto_increment,
      
    admin_name varchar(32NOT NULL default '',
      
    admin_email varchar(96NOT NULL default '',
      
    admin_pass varchar(40NOT NULL default '',
      
    admin_level tinyint(1NOT 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 Code:
          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)

  6. #6
    Join Date
    Jun 2005
    Posts
    20
    Plugin Contributions
    0

    Default 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.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

    Your support helps keep Zen Cart developing further and further and keeps your online shop running now, and in the future ...
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. Replies: 87
    Last Post: 5 Jun 2015, 02:07 AM
  2. Replies: 1
    Last Post: 1 Feb 2015, 03:12 PM
  3. v150 admin password expired, won't reset, will not send new password to email
    By baltimorestreetmods in forum General Questions
    Replies: 2
    Last Post: 6 Sep 2012, 07:16 PM
  4. Admin menu bar disappeared after resetting Admin password
    By stxmona in forum General Questions
    Replies: 7
    Last Post: 10 Sep 2009, 01:16 AM
  5. How do I change my Admin password or add a new admin?
    By websissy in forum General Questions
    Replies: 6
    Last Post: 25 Apr 2008, 05:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR