| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Sample/suggested password | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Sample/suggested password
I made this mod to suggest a password when creating a customer profile.
We tend to do this for telephone orders, set them up an account so it's there, but trying to think of passwords is a bit of a nightmare. This adds a bit of code to automatically generate a random letter string and display it next to the password box so it can just be copy/pasted if required. Each time the page runs it creates a new string. This string is not stored anywhere, and of course there's no way to see if that password has been used before. There's an if statement in the tpl to only display it to admins. mods: /admin/user_add.php before: Code:
add: Code:
skin1/main/register_account.tpl find: Code:
Code:
I'll probably add it to the modify page as well for when we need to reset passwords. it seems to be working on my system, 4.1.11 not sure about any others, but should be ok, and quite simple to alter. hth
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|