HI played around with Yancy the cms for Perl Mojolicious web framework.
When I tried to configure the salt for the password I could pass static values:
$self->yancy->plugin(
'Auth::Password' => {
allow_register => 1,
register_fields => ['username', 'user_password'],
schema => 'User',
username_field => 'username',
password_field => 'user_password',
password_digest => {
type => 'Bcrypt',
cost => 12,
salt => '33cb8ead91234111',
},
}
);
Is there any way in which I can make the code yancy auth plugin read the salt for each password form the a db before login?