Show
Ignore:
Timestamp:
05/16/08 19:51:05 (19 months ago)
Author:
bchoate
Message:

Revised commenter sessions to include user id (as we do with authors) so we can load by id rather than by name. BugId:79253

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-38/extras/examples/plugins/CommentByGoogleAccount/lib/CommentByGoogleAccount.pm

    r2062 r2365  
    3939        my $nick_escaped = escape_unicode($nick); 
    4040        $nick = encode_text($nick, 'utf-8', undef); 
    41         $session = $app->make_commenter_session($app->make_magic_token, $email, 
    42                                                  $name, $nick_escaped); 
    43         unless ($session) { 
    44             $app->error($app->errstr() || $app->translate("Couldn't save the session")); 
    45             return 0; 
    46         } 
    4741        $cmntr = $app->_make_commenter( 
    4842            email => $email, 
     
    5246            auth_type => $auth_type, 
    5347        ); 
     48 
     49        $session = $app->make_commenter_session($cmntr); 
     50        unless ($session) { 
     51            $app->error($app->errstr() || $app->translate("Couldn't save the session")); 
     52            return 0; 
     53        } 
    5454    } else { 
    5555        # If there's no signature, then we trust the cookie.