If this is your first visit, check our documentation. To post, register or login.
Forums / Basic Configuration / Admin login

Admin login

Locked

Started by jtraub01 on 18 Sep 2009, 6:50 PM · Views: 1,586

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
18 Sep 2009, 6:50 PM
#1
jtraub01 avatar

jtraub01

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Admin login

Zen Cart 1.3.8

I am running into an issue where after about 24 hours I can no longer login to ZC admin. I can see the 2 accounts I added in the admin table via SQL.

After resetting my admin login, again, I can login successfully. To get back in I remove the current admin accounts and insert a temp. I can login, change the admin password, and add additional admin acounts. I can then log in and out at will. For about 24 hours. I come back the next day and cannot login. My password email reminder system does not work yet.

I have tried this at home and at work with the same result. I have cleared browser temp files and cookies but no luck.

Anyone know what I can do to fix this?

Jim

20 Sep 2009, 12:35 AM
#2
jtraub01 avatar

jtraub01

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Re: Admin login

Additional information;

I used the code below to remove the admin table, create the admin table, and add a new admin login. This works great. I then tested the resend password link on the login page to check my email server settings. It fails to send email because it cannot find/use SMTP server. That's fine.

But now I cannot login using the new Admin login that worked fine before the resend password failure. Anyone see this before?

Jim

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;

and

INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

20 Sep 2009, 3:05 AM
#3
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin login

When the "Resend Admin Password" is used it immediately replace the old password with the new one, which is eMailed to you.

You can run the same mysql statement above to recreate the same password as before.

You can also increase your Admin timeout using: Configuration > My Store > Admin Session Time Out in Seconds

You can setup eMail protocol using: Configuration > EMail - Options > E-Mail Transport Method : set to use PHP

The learning is in the doing.

Potent Products

20 Sep 2009, 4:02 AM
#4
jtraub01 avatar

jtraub01

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Re: Admin login

Aha! Makes sense now. Although when I use PHP I get the following;

Email Error: Could not instantiate mail function. Please check Admin->Configuration->Email Options->Email Transport.

I have an email in to Go Daddy Support. They will prob tell me to uninstall Zen Cart and reinstall :blush:

THX Rob!

Website Rob:

When the "Resend Admin Password" is used it immediately replace the old password with the new one, which is eMailed to you.

You can run the same mysql statement above to recreate the same password as before.

You can also increase your Admin timeout using: Configuration > My Store > Admin Session Time Out in Seconds

You can setup eMail protocol using: Configuration > EMail - Options > E-Mail Transport Method : set to use PHP

20 Sep 2009, 4:14 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Admin login

jtraub01:

Email Error: Could not instantiate mail function. Please check Admin->Configuration->Email Options->Email Transport.http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Email_Problems#GoDaddy_Hosting_Plans
jtraub01:

I have an email in to Go Daddy Support.
You might consider doing some research to see whether your choice of hosting company is really a wise one.
In my experience that company is only a great choice for domain names. ALL their other services are cash-grabs and offering inferior services to unsuspecting customers. Their hosting services are extremely overloaded causing performance to suffer greatly, making it very unsuitable for an online store if you're trying to use it to generate income. But, don't take just my opinion for it. Do your own research.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Sep 2009, 4:22 AM
#6
jtraub01 avatar

jtraub01

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Re: Admin login

I am hearing that about Gone Daddy more and more. I don't have any traffic to the site yet so we'll see. Thanks!

20 Sep 2009, 4:25 AM
#7
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin login

jtraub01:

Aha! Makes sense now. Although when I use PHP I get the following;

Email Error: Could not instantiate mail function. Please check Admin->Configuration->Email Options->Email Transport.
I have also seen that same error msg. when the following is used incorrectly.

Admin->Configuration->Email Options->Set "Contact Us" Email Dropdown List

If you are using that feature, make sure to follow the instructions.

ie.
Name 1 email@address1,
Name 2 email@address2,
etc.

The learning is in the doing.

Potent Products

20 Sep 2009, 7:28 AM
#8
jtraub01 avatar

jtraub01

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Re: Admin login

Well the answer for me was smtpauth and port 80.

20 Sep 2009, 1:47 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Admin login

Port 80? For email! Wow ... just one more extremely odd configuration by GoDaddy.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Sep 2009, 1:17 AM
#10
jtraub01 avatar

jtraub01

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Re: Admin login

Port 80 worked but GoDaddy support said chang it to port 2 and relay-hosting.secureserver.net. This is the official setting and it works as well. :shocking: