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.