Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Sudden Admin login issue

    Your prior post said that you resolved it by deleting the admin user and creating a new one? Do the symptoms continue to persist now? Does it affect all the admins equally?
    The person whose post you added yours onto said that their symptoms affected the storefront end as well. Did that happen to you?
    .

    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.

  2. #2
    Join Date
    Mar 2010
    Location
    Butte, MT
    Posts
    79
    Plugin Contributions
    0

    Default Re: Sudden Admin login issue

    Quote Originally Posted by DrByte View Post
    Your prior post said that you resolved it by deleting the admin user and creating a new one? Do the symptoms continue to persist now? Does it affect all the admins equally?
    No, as I mentioned, it only affected one admin account.

    The deletion of the account and creation of a new account *seems* to have corrected the issue. However, changing the password did not, nor did changing the username. Logging in to this one account (or attempting to, at least) resulted in the login page reloading. This was tested on three different computers, and with Chrome, Firefox, and Internet Explorer on Windows 7 and on FreeBSD (well, obviously IE was not tested on FreeBSD). On two of the computers used for testing, other admin accounts could log in.

    Quote Originally Posted by DrByte View Post
    The person whose post you added yours onto said that their symptoms affected the storefront end as well. Did that happen to you?
    There are only two customer accounts, and both of these are able to log in.
    Keith Seyffarth
    Paydirt Design

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Sudden Admin login issue

    I know I've run into issues when an Admin User uses the "forgot my password" form and either does not receive the email. In this case, until the reset_token expires, changing the password manually using another admin account appears to have little effect. After going into phpmyadmin or similar and removing the "reset_token" from the affected user account, the password reset from the admin interface works.

    I suppose the easiest way to handle this case might be to correct the user's email address and then they can probably just call the "forgot my password" form again - but I've just gone in and removed the reset_token the handful of times I have seen this case occur.

    I've also seen similar symptoms when an Admin User forgets their password and triggers an account lockout... Until the lockout period expires, even if the password is manually reset by another admin account, the affected Admin User account cannot login.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Sudden Admin login issue

    Quote Originally Posted by lhungil View Post
    I know I've run into issues when an Admin User uses the "forgot my password" form and either does not receive the email. In this case, until the reset_token expires, changing the password manually using another admin account appears to have little effect. After going into phpmyadmin or similar and removing the "reset_token" from the affected user account, the password reset from the admin interface works.

    I suppose the easiest way to handle this case might be to correct the user's email address and then they can probably just call the "forgot my password" form again - but I've just gone in and removed the reset_token the handful of times I have seen this case occur.

    I've also seen similar symptoms when an Admin User forgets their password and triggers an account lockout... Until the lockout period expires, even if the password is manually reset by another admin account, the affected Admin User account cannot login.
    Perhaps it might be good to file a bug report explaining these symptoms. Also, you used the word "either" in your first sentence but didn't finish the thought which it implied. Further, the whole reason for the reset-token is specifically so that if the email is not received that the original password will still indeed work, unlike prior versions where the password was immediately changed to whatever was in the email and then the account became totally useless without the email. The system doesn't currently consider unlocking things by another administrator; that could be an oversight which needs addressing.
    .

    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.

  5. #5
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Sudden Admin login issue

    Quote Originally Posted by DrByte View Post
    ... you used the word "either" in your first sentence but didn't finish the thought ...
    Forgot to remove the word "either" when previewing / editing before posting

    A) did not receive the email B) the wrong email was listed in Zen Cart for the account C) email went to spam / junk D) Email subsystem turned off E) Email misconfiguration

    Quote Originally Posted by DrByte View Post
    ... the whole reason for the reset-token is specifically so that if the email is not received that the original password will still indeed work, unlike prior versions where the password was immediately changed to whatever was in the email and then the account became totally useless without the email. The system doesn't currently consider unlocking things by another administrator; that could be an oversight which needs addressing.
    I do like the new reset_token in 1.5 - and I believe it is also configured out of box to force the user to change the password if they use the reset_token (I'd have to take a deeper look at the code, but this is what I remember the last time i used the password_forgotten form).

    I consider the enforced password change a nice security feature. Far too many people think unencrypted email is a safe method for transmitting passwords days!

    When I get some time, I plan to look at the code in more detail and post something in "Code Suggestions".
    Last edited by lhungil; 20 Mar 2013 at 11:01 PM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Sudden Admin login issue

    Quote Originally Posted by lhungil View Post
    and I believe it is also configured out of box to force the user to change the password if they use the reset_token (I'd have to take a deeper look at the code, but this is what I remember the last time i used the password_forgotten form).
    correct. If they use the token, then they must subsequently choose an actual new password.

    Quote Originally Posted by lhungil View Post
    I consider the enforced password change a nice security feature. Far too many people think unencrypted email is a safe method for transmitting passwords days!
    Agreed.
    And the token expires after a couple days, so cannot be misused months down the road by someone taking over a former employee's email, etc.
    .

    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.

 

 

Similar Threads

  1. Admin Login issue
    By krokus in forum General Questions
    Replies: 2
    Last Post: 21 Jun 2010, 08:09 PM
  2. Sudden Cusotmer Login Issue
    By marcopolo in forum General Questions
    Replies: 3
    Last Post: 6 Mar 2010, 11:02 AM
  3. Admin login issue
    By sawyer3 in forum Customization from the Admin
    Replies: 4
    Last Post: 19 Jun 2006, 07:36 AM

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