Tidy up Plugin::Auth section for current versions and best practices. Changelog
[catagits/Catalyst-Model-DBIC-Schema.git] / lib / Catalyst / Model / DBIC / Schema.pm
index 7545f65..c2d51c7 100644 (file)
@@ -639,26 +639,24 @@ L<Catalyst::Authentication::Store::DBIx::Class> 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