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

2008-10-09 Thread Zbigniew Lukasiak
On Thu, Oct 9, 2008 at 11:44 AM, Bogdan Lucaciu <[EMAIL PROTECTED]> 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::Cl

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

2008-10-09 Thread Bogdan Lucaciu
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 -- Bogdan Lucaciu _

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

2008-10-09 Thread onken
On Thu, 9 Oct 2008 09:35:05 +0200, "Zbigniew Lukasiak" <[EMAIL PROTECTED]> wrote: > On Wed, Oct 8, 2008 at 7:02 PM, Octavian Rasnita <[EMAIL PROTECTED]> > wrote: >> Hi, >> >> I want to add a new user from a FormFu form, using: >> >> my $new_user = $c->model("DB::TempUser")->new_result({hash => $

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

2008-10-09 Thread Zbigniew Lukasiak
On Wed, Oct 8, 2008 at 7:02 PM, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi, > > I want to add a new user from a FormFu form, using: > > my $new_user = $c->model("DB::TempUser")->new_result({hash => $hash}); > > $form->save_to_model($new_user); > > But before adding the elements of the form in

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

2008-10-08 Thread Octavian Rasnita
Hi, I want to add a new user from a FormFu form, using: my $new_user = $c->model("DB::TempUser")->new_result({hash => $hash}); $form->save_to_model($new_user); 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 fie