| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Better Password Recovery | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Better Password Recovery
By default X-Cart sends the user's password in clear text via email when they try to recover their password. This is stupid and easily fixed with a few lines of code. This mod will set the user's password to a random string, email them that string, and force them to reset their password on next login. Yeah, I know a password is still sent in plain text, but at least it is not their actual password they were using and are probably going to set it back to.
Here are the changes you need to make (4.1.9). ADD this function to include/func/func.core.php Code:
This function is compliments of http://www.totallyphp.co.uk/code/create_a_random_password.htm, I was lazy... CHANGE include/help.php Code:
TO: Code:
Now you need to change your email templates. If you are using plain text email edit the template in skin1/mail/. If you are using HTML email edit the template in skin1/mail/html. password_recover.tpl Plain Text FROM Code:
Code:
HTML FROM Code:
TO Code:
Make sure to check your colspan attrib in your TDs. I consolidated the 3 columns to 1. Cheers & Happy Coding, |
|||||||||
#2
|
|||||||
|
|||||||
Re: Better Password Recovery
This didn't work for me. My test account has multiple login names with the same email, so I'm not sure if that was the issue.
The temporary password sent in the email did not allow me to login. I had to change it in admin.
__________________
Jeanne 4.1.8 Gold |
|||||||
#3
|
|||||||
|
|||||||
Re: Better Password Recovery
works in version 4.1.12
Thanks very much for a great snippet... Tony
__________________
X Cart version 4.1.9, 4.1.10, 4.1.11, 4.1.12 (Looking after 15 stores) Just started 4.4.1 for client.... One Page Checkout, On-Sale, Dynamic Images ++++ Loads of others. + 2 Multi Domain stores on 4.1.9 |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|