Skip Menu |

This queue is for tickets about the DBIx-Class-EncodedColumn CPAN distribution.

Report information
The Basics
Id: 67017
Status: resolved
Priority: 0/
Queue: DBIx-Class-EncodedColumn

People
Owner: wreis [...] cpan.org
Requestors: MXEY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Example for DBIx::Class::EncodedColumn::Crypt::Eksblowfish::Bcrypt is wrong
The example looks like this: __PACKAGE__->add_columns( 'password' => { data_type => 'CHAR', size => 22, encode_column => 1, encode_class => 'Crypt::Eksblowfish::Bcrypt', encode_args => { key_nul => 0, cost => 8 }, digest_check_method => 'check_password', } but should look like this: __PACKAGE__->add_columns( 'password' => { data_type => 'CHAR', size => 59, encode_column => 1, encode_class => 'Crypt::Eksblowfish::Bcrypt', encode_args => { key_nul => 0, cost => 8 }, encode_check_method => 'check_password', } 22 is too small to store a bcrypted password, you need a size of 59. The argument for the method name is encode_check_method, not digest_check_method.
On Mon Mar 28 08:18:31 2011, MXEY wrote: Show quoted text
> > 22 is too small to store a bcrypted password, you need a size of 59. The > argument for the method name is encode_check_method, not > digest_check_method.
I just fixed it and will do a new release in a bit. Thanks for your contribution. -- Wallace Reis/wreis http://www.about.me/wallacereis