[Catalyst-commits] r7407 -
trunk/Catalyst-Authentication-Store-DBIx-Class/lib/Catalyst/Authentication/Store/DBIx/Class
jayk at dev.catalyst.perl.org
jayk at dev.catalyst.perl.org
Wed Jan 23 19:38:52 GMT 2008
Author: jayk
Date: 2008-01-23 19:38:51 +0000 (Wed, 23 Jan 2008)
New Revision: 7407
Modified:
trunk/Catalyst-Authentication-Store-DBIx-Class/lib/Catalyst/Authentication/Store/DBIx/Class/User.pm
Log:
updating docs to be more clear about behavior when updating
thanks to LTJake for feedback
Modified: trunk/Catalyst-Authentication-Store-DBIx-Class/lib/Catalyst/Authentication/Store/DBIx/Class/User.pm
===================================================================
--- trunk/Catalyst-Authentication-Store-DBIx-Class/lib/Catalyst/Authentication/Store/DBIx/Class/User.pm 2008-01-23 19:23:11 UTC (rev 7406)
+++ trunk/Catalyst-Authentication-Store-DBIx-Class/lib/Catalyst/Authentication/Store/DBIx/Class/User.pm 2008-01-23 19:38:51 UTC (rev 7407)
@@ -267,11 +267,12 @@
This is called when the auto_update_user option is turned on in
Catalyst::Plugin::Authentication. Note that by default the DBIx::Class store
uses every field in the authinfo hash to match the user. This means any
-information that is provided that does not match the user record will cause
-the user record to not be found. In order for the auto_update routine to be
-useful, you have to add the fields you wish to update to the
-'ignore_fields_in_find' authinfo element, or you must be using one of the advanced row
-retrieval methods (searchargs or resultset).
+information you provide with the intent to update must be ignored during the
+user search process. Otherwise the information will most likely cause the user
+record to not be found. To ignore fields in the search process, you
+have to add the fields you wish to update to the 'ignore_fields_in_find'
+authinfo element. Alternately, you can use one of the advanced row retrieval
+methods (searchargs or resultset).
By default, auto_update will call the C<auto_update()> method of the
DBIx::Class::Row object associated with the user. It is up to you to implement
More information about the Catalyst-commits
mailing list