Subject: | use_userdata_from_session => 1 and PasshpraseColumn rejects valid password |
Hello,
I have use_userdata_from_session => 1 in my config file and my model
looks like:
__PACKAGE__->add_columns(
'+password' => {
passphrase => 'crypt',
passphrase_class => 'BlowfishCrypt',
passphrase_args => {
cost => 12,
salt_random => 20,
},
passphrase_check_method => 'check_password',
},
);
I have a form which the user could change his password and I ask for the
old password before changing it. However checking $c->user->obj-
Show quoted text
>check_password('pass') returns always false.
I've tried to retrieve the user first by: my $user = $c-
Show quoted text>model('DB::User')->find($c->user->obj->id) and after that calling
$user->check_password('pass') returns true.
I'll try to add failing test to that.
Cheers