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

 Encrypt password - Before build update

Print topic Send  topic

Author Message
szenczi

Posts: 67
Posted: 08/28/2013, 4:24 AM

Hi,

A have got a record with a password field, which was built by the CCS record builder.
But, if I leave this field empty, I get the next php error:

Notice: Undefined index: in C:\wamp\akademianyelviskola\hozzaferes_events.php on line 293

Fatal error: Call to a member function GetValue() on a non-object in C:\wamp\akademianyelviskola\hozzaferes_events.php on line 293

This is the php code:


//a_adminisztrator_ds_BeforeBuildUpdate @53-3DD048C8
...
//Encrypt Password @216-411E8EB7
if ("" != $Component->DataSource->passwd->GetValue()) { $Component->DataSource->cp["passwd"]->SetValue(CCEncryptPasswordDB($Component->DataSource->cp["passwd"]->GetValue())); }
else {
[293] $Component->DataSource->cp["passwd"]->SetValue(CCDecryptString($Component->DataSource->cp[""]->GetValue(), CCS_ENCRYPTION_KEY_FOR_COOKIE)); }
//End Encrypt Password

What is the problem?
Thank you!

Norbert
_________________
CCS5.1, PhP, MySQL
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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