[Bps-public-commit] jifty-plugin-authentication-twitter branch, master, updated. 071b49c3ad345b60b381772e49a4d59af7b90903

Shawn Moore sartak at bestpractical.com
Thu Jun 10 16:58:39 EDT 2010


The branch, master has been updated
       via  071b49c3ad345b60b381772e49a4d59af7b90903 (commit)
       via  270397a7347831e56caa18efd6bcd6497b73c724 (commit)
      from  660942f0c2c064347686e403a3c54495c3dba567 (commit)

Summary of changes:
 .../Plugin/Authentication/Twitter/Dispatcher.pm    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 270397a7347831e56caa18efd6bcd6497b73c724
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Jun 10 16:59:24 2010 -0400

    Need to call the setter

diff --git a/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm b/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
index 20afbbe..9ba88ea 100644
--- a/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
+++ b/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
@@ -111,7 +111,7 @@ on '/twitter/callback' => run {
 
     if ($twitter_account->id) {
         $user->load($twitter_account->user_id);
-        $twitter_account->screen_name($screen_name);
+        $twitter_account->set_screen_name($screen_name);
     }
     else {
         $user->create(

commit 071b49c3ad345b60b381772e49a4d59af7b90903
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Jun 10 16:59:29 2010 -0400

    ->new(id => $user->id) not ->load($user->id)

diff --git a/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm b/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
index 9ba88ea..72f4fb9 100644
--- a/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
+++ b/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
@@ -127,7 +127,7 @@ on '/twitter/callback' => run {
     }
 
     if ($user->id) {
-        my $current_user = Jifty->app_class('CurrentUser')->load($user->id);
+        my $current_user = Jifty->app_class('CurrentUser')->new(id => $user->id);
         Jifty->web->current_user($current_user);
         Jifty->web->session->expires( undef );
         Jifty->web->session->set_cookie;

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list