dbts form processor

Issues related to the Login tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html

TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
Post Reply
maxime
 
 
Posts: 117
Joined: Sat Apr 02, 2011 6:15 pm
Contact:

dbts form processor

Post by maxime »

how can i create a password field and make it save with md5 (encrypt) using the DBTS form processor
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: dbts form processor

Post by Navaldesign »

You will need to use the "Custom processing" properties, to add the necessary code to MD5 encrypt a given field value.
www.dbtechnosystems.com
maxime
 
 
Posts: 117
Joined: Sat Apr 02, 2011 6:15 pm
Contact:

Re: dbts form processor

Post by maxime »

yes i know i have already be able to make the | as a separator by putting a special code using the before error section


but i do not know what code to use for making a password in md5 and in wich section exactly of the custom processing !. what about the name of the field should i use ?
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: dbts form processor

Post by Navaldesign »

Use (just an example) a field in the form named "pass".
Then use the following code (haven't tested it):

$_POST["password"] = md5($_POST["pass"]);

in the "Start of Script Custom Processing" section.

This will create a "password" value equal to the md5 of "pass".
Also, it will add it in the $_POST superglobal JUST AS if it had been submitted directly from the form.
If you wish to destroy the "pass" value so it will not be stored in the database in clear (non encrypted) format, for security reasons, you should add a second line of code as follows:


$_POST["password"] = md5($_POST["pass"]);
unset ($_POST["pass"]);
www.dbtechnosystems.com
maxime
 
 
Posts: 117
Joined: Sat Apr 02, 2011 6:15 pm
Contact:

Re: dbts form processor

Post by maxime »

yessssssssssssssss, Thank you Naval, it work very well !
Post Reply