X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FAuthentication.pm;h=98415ceed6d146894c0bbbfc38526f795259f8a9;hb=8a31d23d60e1b252399a376007d1f2ffe271890b;hp=4898277bb3224323bd7190018d5e42254c687230;hpb=4b4bfe2f455851ea95aaba501342918f71e3fe46;p=catagits%2FCatalyst-Plugin-Authentication.git diff --git a/lib/Catalyst/Plugin/Authentication.pm b/lib/Catalyst/Plugin/Authentication.pm index 4898277..98415ce 100644 --- a/lib/Catalyst/Plugin/Authentication.pm +++ b/lib/Catalyst/Plugin/Authentication.pm @@ -12,7 +12,7 @@ use Tie::RefHash; use Class::Inspector; use Catalyst::Authentication::Realm; -our $VERSION = "0.10016"; +our $VERSION = "0.10018"; sub set_authenticated { my ( $c, $user, $realmname ) = @_; @@ -863,14 +863,20 @@ default realm is checked. =head2 $c->user( ) Returns the currently logged in user, or undef if there is none. +Normally the user is re-retrieved from the store. +For L the user is re-restored +using the primary key of the user table. +Thus B can throw an error even though B +returned true. =head2 $c->user_exists( ) Returns true if a user is logged in right now. The difference between -user_exists and user is that user_exists will return true if a user is logged +B and B is that user_exists will return true if a user is logged in, even if it has not been yet retrieved from the storage backend. If you only need to know if the user is logged in, depending on the storage mechanism this can be much more efficient. +B only looks into the session while B is trying to restore the user. =head2 $c->user_in_realm( $realm ) @@ -1126,9 +1132,11 @@ Florian Ragwitz C Stephan Jauernick C +Oskari Ojala (Okko), C + =head1 COPYRIGHT & LICENSE -Copyright (c) 2005 - 2009 +Copyright (c) 2005 - 2011 the Catalyst::Plugin::Authentication L as listed above.