X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAuthentication%2FRealm%2FProgressive.pm;h=726c424ce88b57e23ff4c560884b4e8636ef3b34;hb=43e9b0b989cb7b7d1c4bca4d8baeb33f186d5ef7;hp=915cd6466778c12ea62b7f503ddc75875e6c4837;hpb=055630f7ebf46a5948315e55ab1c53a459fc35b7;p=catagits%2FCatalyst-Plugin-Authentication.git diff --git a/lib/Catalyst/Authentication/Realm/Progressive.pm b/lib/Catalyst/Authentication/Realm/Progressive.pm index 915cd64..726c424 100644 --- a/lib/Catalyst/Authentication/Realm/Progressive.pm +++ b/lib/Catalyst/Authentication/Realm/Progressive.pm @@ -41,11 +41,11 @@ the normal realm. # 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', @@ -132,7 +132,7 @@ sub authenticate { 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 ) ) {