projects
/
catagits/Catalyst-Plugin-Authentication.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
057c596
)
Auth: Put the user data in req->user
Andy Grundman [Mon, 7 Nov 2005 18:04:18 +0000 (18:04 +0000)]
lib/Catalyst/Plugin/Authentication.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Plugin/Authentication.pm
b/lib/Catalyst/Plugin/Authentication.pm
index
6e8fbba
..
5823c7f
100644
(file)
--- a/
lib/Catalyst/Plugin/Authentication.pm
+++ b/
lib/Catalyst/Plugin/Authentication.pm
@@
-62,6
+62,7
@@
sub prepare {
{
if ( $c->sessionid and my $user = $c->session->{__user} ) {
$c->user( $c->session->{__user_class}->from_session( $c, $user ) );
+ $c->request->user( $c->user );
}
}