Jump to content
Sign in to follow this  

Generate random password

Recommended Posts

when a customer orders, after they finalise payment can the system automatically generate a random code (password) which is specific to the order, show this password to the customer and store it in the database (unencoded).





is there a mod for this?

Share this post

Link to post
Share on other sites

osCommerce does it like this in password_forgotten.php:


      $new_password = tep_create_random_value(ENTRY_PASSWORD_MIN_LENGTH);
     $crypted_password = tep_encrypt_password($new_password);


It wouldn't be difficult to get this into checkout_process.php :D



Matti Ressler


We were all once expert at...... nothing


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this