Password and User table issues

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Password and User table issues

Post by Brewhaus » Tue Dec 09, 2008 10:01 am

We have suddenly run into a problem with people logging in. Even when we confirm that the password is correct, the system is not letting select customers (I do not know how many) log in. And, after the select number of attempts, it locks those same customers for considerably more than 10 minutes (one is going on a day now).

Of the three accounts that we tried, we had the following issues:

Account 1- locked, despite confirming that the password is correct. This customer is still locked out a day later.

Account 2- Could not log in or reset password (kept receiving a notice that the old password was incorrect). Account got locked for too many attempts, but an hour later it allows us in.

Account 3- no issues at all

There does not seem to be any rhyme or reason, so if anyone has any ideas please let me know.

The other question is that we found, when opening the Users table to see about the password problems, that there are several times as many entries as there are registered customers (I gave up running down the list when we hit around 30 times as many entries as registered users). They have a username such as 83ec30ac-15f3-4a9b-a082-4c0c6517a2ac, and are listed as 'anonymous'. Does the keep a user listing for every person that visits the site? If so, will this not, in time, slow the system down?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Password and User table issues

Post by jmestep » Tue Dec 09, 2008 12:33 pm

You can change the setting in the store for the days to save anonymous users. Configure-->Store
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Password and User table issues

Post by Brewhaus » Tue Dec 09, 2008 9:05 pm

Thanks, Judy. That part is fixed.

I did more digging and found that we had three accounts entirely locked out. Two of the lockouts go back to October, and the accounts could still not be accessed. I managed to free them up by changing the lockout time to zero, changing the customer's password to something that we knew, and then logging in as the customer from the front end. I could not find any other way around this.

This leaves me with two questions:

1) What would cause an account to be permanently locked out?
2) How can we correct this issue? Obviously this will result in lost customers (if they cannot access their account).
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Password and User table issues

Post by jmestep » Wed Dec 10, 2008 7:41 am

I'm not sure, but I know we have had admin locks in the past and have had to go to the database to unlock users. Maybe mazhar could come up with a snippet to run to unlock all users if hacking isn't as much of a problem as lost customers.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Password and User table issues

Post by Brewhaus » Wed Dec 10, 2008 8:10 am

Did you find an easier way to unlock the accounts? My method was a bit harsh, but it was the only way I could find that worked, as I could not simply change the lock value from 1 to 0.
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Password and User table issues

Post by jmestep » Wed Dec 10, 2008 1:37 pm

No, I never found an easier way. I don't have contact with customers, so I don't know if it happens to them. I've just locked myself out with so many passwords to remember.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Password and User table issues

Post by mazhar » Thu Dec 11, 2008 6:10 am

Code: Select all

UserCollection users = UserDataSource.LoadForStore();
        foreach (User user in users)
        {
            if (user.IsLockedOut)
            {
                user.IsLockedOut = false;
                user.Save();
            }
        }
You can use the above code to unlock all the locked users.

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Password and User table issues

Post by Brewhaus » Thu Dec 11, 2008 8:16 am

Where would we place this code?

Also, do you know why the system may permanently lock an account / not release an account from being locked after 10 minutes?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Password and User table issues

Post by mazhar » Thu Dec 11, 2008 8:22 am

Here is the updated page. You need to replace the Admin/People/Users/Default.aspx with this one.
Don't forget to backup your existing page files.

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Password and User table issues

Post by Brewhaus » Sat Apr 18, 2009 9:28 pm

I notice that the Users menu in 7.0.2 has several more features, so we do not want to over-write it with the old 7.0 files. Is it possible to get an updated version of the Users files with the unlock code to be used with 7.0.2?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Password and User table issues

Post by mazhar » Mon Apr 20, 2009 3:25 am

Updated page for 7.0.2 version

Post Reply