Типа я (zilogic) wrote in changelog,
entry is in top1000 rating
Типа я
zilogic
changelog

[livejournal] r19760: LJSUP-8796: After adding comment the use...

Committer: amyshkin
LJSUP-8796: After adding comment the user must stay authorized under that account under which he initiated comments
U   trunk/htdocs/identity/callback-openid.bml
Modified: trunk/htdocs/identity/callback-openid.bml
===================================================================
--- trunk/htdocs/identity/callback-openid.bml	2011-08-17 09:31:04 UTC (rev 19759)
+++ trunk/htdocs/identity/callback-openid.bml	2011-08-18 02:30:53 UTC (rev 19760)
@@ -65,6 +65,9 @@
     # affects the partner sites authorization
     LJ::Session->allow_login_from_iframe;
 
+    # save current user id, so we can restore it later
+    $u->save_current();
+
     $u->make_login_session($sess_opts->{'exptype'}, $sess_opts->{'ipfixed'});
     LJ::set_remote($u);
 

Tags: bml, livejournal, zilogic
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments