You can sometimes get a very confused technically challenged user who copy pastes a password from an email client/web-mail browser that selects the trailing or pre-pending space without them cottoning on.
Obviously a space causes the password to fail because it should be there so the fix is to edit as follows:
All this does is trims any excess spaces from the beginning and/or end of the password input (it won't touch any in the middle - if they exist) and helps usher the poor customer in.
Frankly I'm at a complete loss as to why the coder defined $pass earlier in the code and then continues to use $_POST['login_pass'] like a first grade numpty... It's inefficient and makes for errors if someone isn't paying attention.
I just had to say thank you. I have been having problems with people logging in since forever and even to the point where they would be sent around in loops with the system trying to reset their password and they were never able to log in. In the end I had to remove all the rest password functions and ask people to email me so I could manually reset their password. I hate to imagine how many just didn't bother.
I am really hoping this fix does the trick. Thank you.
Anyone confirm if the above works in 6.1.8? Have made the changes in this post https://www.interspire.com/forum/showpo ... stcount=15 which hasn't worked and can't find any reference to the $plain = $password in the class.customer.php file in 6.1.8!