X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Model-DBIC-Schema.git;a=blobdiff_plain;f=lib%2FCatalyst%2FModel%2FDBIC%2FSchema.pm;h=c2d51c73fd548fd9f7ed715461a6709e6023dfa5;hp=7545f653ce0cefea3df6bfe4f1096cc6e343bd5e;hb=10c73a308630dc5c933868e4470016bfd18e450f;hpb=95b41ca8a0d1cb93aa7233a79f7a27112e62a266 diff --git a/lib/Catalyst/Model/DBIC/Schema.pm b/lib/Catalyst/Model/DBIC/Schema.pm index 7545f65..c2d51c7 100644 --- a/lib/Catalyst/Model/DBIC/Schema.pm +++ b/lib/Catalyst/Model/DBIC/Schema.pm @@ -639,26 +639,24 @@ L in MyApp.pm: ... - __PACKAGE__->config->{authentication} = - { + __PACKAGE__->config('Plugin::Authentication' => + { default_realm => 'members', - realms => { - members => { - credential => { - class => 'Password', - password_field => 'password', - password_type => 'hashed' - password_hash_type => 'SHA-256' - }, - store => { - class => 'DBIx::Class', - user_model => 'DB::User', - role_relation => 'roles', - role_field => 'rolename', - } + members => { + credential => { + class => 'Password', + password_field => 'password', + password_type => 'hashed' + password_hash_type => 'SHA-256' + }, + store => { + class => 'DBIx::Class', + user_model => 'DB::User', + role_relation => 'roles', + role_field => 'rolename', } } - }; + }); =head1 SEE ALSO