From: Tomas Doran Date: Wed, 14 Oct 2009 00:30:11 +0000 (+0000) Subject: Change example configs to fit in with recent DBIC store X-Git-Tag: v0.10016~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Authentication.git;a=commitdiff_plain;h=055630f7ebf46a5948315e55ab1c53a459fc35b7 Change example configs to fit in with recent DBIC store --- diff --git a/lib/Catalyst/Authentication/Realm/Progressive.pm b/lib/Catalyst/Authentication/Realm/Progressive.pm index 9eef535..915cd64 100644 --- a/lib/Catalyst/Authentication/Realm/Progressive.pm +++ b/lib/Catalyst/Authentication/Realm/Progressive.pm @@ -54,7 +54,7 @@ the normal realm. }, store => { class => 'DBIx::Class', - user_class => 'Schema::Person::Identity', + user_model => 'Schema::Person::Identity', id_field => 'id', } }, @@ -67,7 +67,7 @@ the normal realm. }, store => { class => 'DBIx::Class', - user_class => 'Schema::Person::Identity', + user_model => 'Schema::Person::Identity', id_field => 'id', } }, diff --git a/lib/Catalyst/Plugin/Authentication.pm b/lib/Catalyst/Plugin/Authentication.pm index 08256fc..2914db5 100644 --- a/lib/Catalyst/Plugin/Authentication.pm +++ b/lib/Catalyst/Plugin/Authentication.pm @@ -756,8 +756,8 @@ changing your config: }, store => { class => 'DBIx::Class', - user_class => 'MyApp::Users', - role_column => 'roles' + user_model => 'MyApp::Users', + role_column => 'roles', } } } @@ -782,8 +782,8 @@ new source. The rest of your application is completely unchanged. }, store => { class => 'DBIx::Class', - user_class => 'MyApp::Users', - role_column => 'roles' + user_model => 'MyApp::Users', + role_column => 'roles', } }, admins => {