[html-formfu] Modify a submitted value before storing it in the database

Zbigniew Lukasiak zzbbyy at gmail.com
Fri Oct 10 07:59:11 BST 2008


On Thu, Oct 9, 2008 at 11:44 AM, Bogdan Lucaciu <bogdan at wiz.ro> wrote:
> On Wednesday 08 October 2008 20:02:37 Octavian Rasnita wrote:
>> But before adding the elements of the form in the database, I want to
>> sha1_hex() the submitted password, which is one of the form fields.
>
> Use DBIx::Class::DigestColumns

I knew I've forgot something :)

But - by the way - it looks that the mentioned above
DBIx::Class::EncodedColumn is a replacement for this one.  It's newer,
written by the same authors and seems to be a bit more robust.

Cheers,
Zbigniew
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/



More information about the HTML-FormFu mailing list