Changeset 2365 for branches/release-38/extras/examples/plugins/CommentByGoogleAccount/lib/CommentByGoogleAccount.pm
- Timestamp:
- 05/16/08 19:51:05 (19 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-38/extras/examples/plugins/CommentByGoogleAccount/lib/CommentByGoogleAccount.pm
r2062 r2365 39 39 my $nick_escaped = escape_unicode($nick); 40 40 $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 }47 41 $cmntr = $app->_make_commenter( 48 42 email => $email, … … 52 46 auth_type => $auth_type, 53 47 ); 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 } 54 54 } else { 55 55 # If there's no signature, then we trust the cookie.
