2010/1/24 Alex Povolotsky <tark...@over.ru>:
> Hello!
>
> I'm going to implement reusable password processing - comparing two password
> fields and setting proper value in form to some hash.
>
> I guess it's best to be used with HTML::FormFu::Transformer ; maybe someone
> have expirience to share and/or suggestions to make?

You can use any subroutine from any cpan Digest::* module, with
something such as this:

transformer:
  type: Callback
  callback:: "Digest::MD5::md5_hex"

This will essentially do:
    $new_value = Digest::MD5::md5_hex( $value );

Just make sure that you have a "use Digest::MD5" somewhere in any code
that uses it.

Carl

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to