-
balliano made 1 file-release changes.
2009-11-13 16:10:03 UTC by balliano
-
balliano made 1 file-release changes.
2009-11-13 16:04:01 UTC by balliano
-
balliano made 1 file-release changes.
2009-11-13 16:02:02 UTC by balliano
-
balliano made 1 file-release changes.
2009-11-13 15:59:02 UTC by balliano
-
OK, so if the password field in the database is called "password", you could "hide" it by not anchoring it in the mask. You can create a dummy field called "dummy password" and and anchor it to the mask. Then in the saveRow() function do:
public function saveRow() {
if (!$this->fields->dummypassword->getNewValue() == null) {...
2009-11-13 14:08:43 UTC by martingautier
-
thanks! but now when i see the field the password is crypted, is there a way to hide the textfield? in other words: i want to write the password and save crypted (now it works good) but i don' t want to see tha password other times, the field must be blank without showing the current password.
is it possible with p4a 3?
tnx.
2009-11-13 13:54:56 UTC by debianland
-
In your mask add a saveRow() function,
public function saveRow() {
if (!$this->fields->password->getNewValue() == null) {
$this->fields->password->setNewValue(md5($this->fields->password->getNewValue()));
}
parent::saveRow();
}.
2009-11-13 11:19:04 UTC by martingautier
-
hi guys,
i have a "password" field in my database.
I want to write clearly the new password in a field p4a but when i save it, p4a must crypt with md5 and then save in db. This the actual code:
$this->build("p4a_fieldset", "fs_details")
->setLabel("Password change")
->anchor($this->fields->password);
Many thanks for help,
Marco.
2009-11-13 11:06:31 UTC by debianland
-
balliano committed revision 2187 to the PHP For Applications - PHP Framework SVN repository, changing 2 files.
2009-11-12 21:36:08 UTC by balliano
-
balliano committed revision 2186 to the PHP For Applications - PHP Framework SVN repository, changing 1 files.
2009-11-12 21:31:18 UTC by balliano