[Catalyst-commits] r13601 - Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Plugin

davewood at dev.catalyst.perl.org davewood at dev.catalyst.perl.org
Fri Sep 24 07:54:29 GMT 2010


Author: davewood
Date: 2010-09-24 08:54:29 +0100 (Fri, 24 Sep 2010)
New Revision: 13601

Modified:
   Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Plugin/Authentication.pm
Log:
updated pod to make manual authentication more understandable

Modified: Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Plugin/Authentication.pm
===================================================================
--- Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Plugin/Authentication.pm	2010-09-23 18:34:04 UTC (rev 13600)
+++ Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Plugin/Authentication.pm	2010-09-24 07:54:29 UTC (rev 13601)
@@ -887,6 +887,9 @@
 Fetch a particular users details, matching the provided user info, from the realm
 specified in $realm.
 
+    $user = $c->find_user({ id => $id });
+    $c->set_authenticated($user); # logs the user in and calls persist_user
+
 =head2 persist_user()
 
 Under normal circumstances the user data is only saved to the session during
@@ -911,7 +914,8 @@
 =head2 $c->set_authenticated( $user, $realmname )
 
 Marks a user as authenticated. This is called from within the authenticate
-routine when a credential returns a user. $realmname defaults to 'default'
+routine when a credential returns a user. $realmname defaults to 'default'.
+You can use find_user to get $user
 
 =head2 $c->auth_restore_user( $user, $realmname )
 




More information about the Catalyst-commits mailing list