[html-formfu] Modify a submitted value before storing it
inthedatabase
Octavian Rasnita
orasnita at gmail.com
Wed Oct 22 10:44:30 BST 2008
From: "Moritz Onken" <onken at houseofdesign.de>
>
> Am 10.10.2008 um 09:19 schrieb Octavian Rasnita:
>
>> Thank you for the suggestion. I have read the POD doc for
>> DBIx::Class::EncodedColumn and I will try to see if I can make it to
>> cooperate well with the Catalyst helper that create the DBIC classes.
>>
>> I have read that "Note: The component needs to be loaded before
>> Core.", so I don't know if I can make it work if I don't modify
>> what's above the "# DO NOT MODIFY THIS OR ANYTHING ABOVE"...
>>
>> Thank you.
>
>
> You need to edit the column information and that is above the line
> so it'll break the checksum.
> I decided to use the helper for creating the schema once and every time
> I want to change something in the database structure I do the change
> in the DBIC schema and ->deploy that schema to the database.
> It' just the other way round.
>
Finally I've modified the password field manually, because in this way I can use the DBIC::Schema helper without problems.
I've done:
$c->req->param(sha1_hex($c->req->param('password')));
$form->process;
$form->model->update($user);
Octavian
More information about the HTML-FormFu
mailing list