CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 md5 encryption

Print topic Send  topic

Author Message
bigd39

Posts: 16
Posted: 04/07/2004, 9:07 AM

Ok I need to know where to put the md5 encrytion. For encryption password in postgresql. Do i put it in the passwordchange that i have or do i put it somewhere else everybody say to but it in a before insert. but where in before insert do i put it what page.

codecharge is werid. I wrote something with dreamweaver no problem. but this php software i am fixing is written with codecharge so i have to fix it. I see a lot of threads that talk about it. but you know what nobody says where excatly to put it. md5 encryption for postgresql an what page do i put this in. the password change page or somewhere else. an all my before inserts are in the users area. An has anyone gotten it to work right. if so please share how to do it. where where where. This making me mad. I done it write dreamweaver no problem
View profile  Send private message
carolcastro


Posts: 24
Posted: 04/07/2004, 10:29 AM

You shoul put in the following events:
- Before Insert
- Before Update

Add the line
$form->password->SetValue(md5($form->password->GetValue()));

It worked for me! :)
_________________
Carol Castro
View profile  Send private message
bigd39

Posts: 16
Posted: 04/07/2004, 10:39 AM

How do you add an event. I am new to codecharge. that is what you are talking about right add an event an then put the code in right.
View profile  Send private message
bigd39

Posts: 16
Posted: 04/07/2004, 10:45 AM

I went to events of the propertises of the page an click on the server or client an it will not let me add an event is that where you do that.
View profile  Send private message
Don Safar
Posted: 04/07/2004, 11:22 AM

I would recommend you spend some time going through the codecharge
tutorials. That will help you grasp the environment and help you get "up to
speed" a lot faster and it will answer a lot of your questions on the
codecharge IDE.

"bigd39" <bigd39@forum.codecharge> wrote in message
news:540742726bae54@news.codecharge.com...
> Ok I need to know where to put the md5 encrytion. For encryption
password in
> postgresql. Do i put it in the passwordchange that i have or do i put it
> somewhere else everybody say to but it in a before insert. but where in
before
> insert do i put it what page.
>
> codecharge is werid. I wrote something with dreamweaver no problem. but
this
> php software i am fixing is written with codecharge so i have to fix it.
I see
> a lot of threads that talk about it. but you know what nobody says where
> excatly to put it. md5 encryption for postgresql an what page do i put
this
> in. the password change page or somewhere else. an all my before inserts
are in
> the users area. An has anyone gotten it to work right. if so please share
how
> to do it. where where where. This making me mad. I done it write
dreamweaver
> no problem
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

peterr


Posts: 5971
Posted: 04/07/2004, 11:30 AM

Please take a look at http://docs.codecharge.com/studio/html/QuickStart/EnhAp...rTextColor.html
(just an example from the tutorial)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
bigd39

Posts: 16
Posted: 04/07/2004, 11:45 AM

i saw under the passwordchange page user record an it has the before inssert
an before update is that where i need to add the code.
View profile  Send private message
peterr


Posts: 5971
Posted: 04/07/2004, 12:01 PM

If some code is already there then it means that the previous developer of this project wrote it. It could be best if you analyze the code that he wrote and either fix it or add new code. Although I'm assuming that you could just add the new encryption code below the existing code.

Otherwise, if you only see "'//Write your own code here." then overwrite it with the code that you need, provided by Carol above.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
bigd39

Posts: 16
Posted: 04/07/2004, 12:09 PM

so would that be the place to put it under the user part or does that matter as long it is under that page.
View profile  Send private message
bigd39

Posts: 16
Posted: 04/07/2004, 12:14 PM

an it says put custom code an it puts under global users would that work
View profile  Send private message
peterr


Posts: 5971
Posted: 04/07/2004, 12:26 PM

You should be able to place the code under the previous/existing code, but I don't know what the previous code does and how it can affect the new code. Actually you can try putting yours at the top and if it doesn't work then move to the bottom.
However, in each case the code should be within the events specified by Carol (Before Insert and Before Update). Therefore it cannot be only on that page, but must be within these specifc events.

I didn't understand the last part "it puts under global users would that work ". What do you refer to by "global users"?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
bigd39

Posts: 16
Posted: 04/07/2004, 12:40 PM

ok when you click on changepassowrd page, it has record user under that in the project explore area. an when you click on that an go to properties ,that is where i find the before insert an before update event . I right click on that add custom code. this is where it want to put it. //Custom Code @25-D37AD2A6
// -------------------------
global $users;
// Write your own code here.
// -------------------------
//End Custom Code
is that right to put the passowrd encryption code there. or am i wrong
View profile  Send private message
peterr


Posts: 5971
Posted: 04/07/2004, 12:47 PM

Yes, this should be the right place. You should overwite "// Write your own code here." with the code that you want.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.