# Modify the authinfo passed into authenticate by merging
# these hashes into the realm's authenticate call:
authinfo_munge => {
- 'local' => { 'type' => 'normal' },
+ 'normal' => { 'type' => 'normal' },
'temp' => { 'type' => 'temporary' },
}
},
- 'normal' => {
+ normal => {
credential => {
class => 'Password',
password_field => 'secret',
unless $realm;
my $auth = { %$authinfo };
$auth->{realm} ||= $realm->name;
- if ( my $info = $realm->config->{authinfo_munge}->{$realm->name} ) {
+ if ( my $info = $self->config->{authinfo_munge}->{$realm->name} ) {
$auth = Catalyst::Utils::merge_hashes($auth, $info);
}
if ( my $obj = $realm->authenticate( $c, $auth ) ) {