[Jifty-commit] r4863 - in jifty/trunk: lib/Jifty/Plugin/OAuth

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Jan 15 22:25:30 EST 2008


Author: sartak
Date: Tue Jan 15 22:25:29 2008
New Revision: 4863

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/OAuth/Dispatcher.pm

Log:
 r50443 at onn:  sartak | 2008-01-15 22:24:47 -0500
 OAuth should set temporary_current_user, not current_user


Modified: jifty/trunk/lib/Jifty/Plugin/OAuth/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/OAuth/Dispatcher.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/OAuth/Dispatcher.pm	Tue Jan 15 22:25:29 2008
@@ -250,7 +250,7 @@
     abortmsg(undef, "Invalid signature (type: $oauth_params{signature_method})."), return unless $request->verify;
 
     $consumer->made_request(@oauth_params{qw/timestamp nonce/});
-    Jifty->web->current_user(Jifty->app_class('CurrentUser')->new(id => $access_token->auth_as));
+    Jifty->web->temporary_current_user(Jifty->app_class('CurrentUser')->new(id => $access_token->auth_as));
 }
 
 =head2 get_consumer CONSUMER KEY


More information about the Jifty-commit mailing list