[html-formfu] password processing

Carl Franks fireartist at gmail.com
Mon Jan 25 09:36:21 GMT 2010


2010/1/24 Alex Povolotsky <tarkhil at 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



More information about the HTML-FormFu mailing list