PDA

View Full Version : Auto Generate Multiple Random Passwords


Kevin373660
07-01-2009, 06:55 AM
I would like to automatically generate two (or more) random codes for a user from the same web page and send all of them by a confirmation email and insert their values in to separate fields in user’s db table. When using SecurityAsisst Wizard to create the user registration pages their auto generated login password was setup complete with the email confirmation process, and it works fine.

Can I use the SecurityAsisst-RandomPassword Server Binding feature to create the other two codes? Is there a limit (like the binding can only be applied once per page)? How can they be identified separately? Are there considerations that I should take so that I do not damage/change the existing functions that work? May this damage/change the WA_RandomPassword.php file?

Ray Borduin
07-01-2009, 07:50 AM
You can use it as many times as you want on a page. My suggestion would be to use it in the create session variable server behavior and then once created you can refer to it multiple times through that session variable when updating the database or sending emails.

Kevin373660
07-01-2009, 09:12 AM
Could this same feature be applied in the eCart process? In my case, for each pass purchased (with its own productID) I want to automatically generate 2-activation codes. This is to allow a gift purchase with activation by recipient. Send them in successful order payment acknowledgement confirmation email and insert their unique values into a db table. After the user would manually enter the activation codes to allow access.

Ray Borduin
07-01-2009, 11:01 AM
Yes it could be used in that process as well.