[ljcom] r9989: LJINT-362 (Comments for side projects)
Committer: ailyin
LJINT-362 (Comments for side projects)U trunk/htdocs/identity/callback-facebook.bml U trunk/htdocs/identity/callback-twitter.bml
Modified: trunk/htdocs/identity/callback-facebook.bml
===================================================================
--- trunk/htdocs/identity/callback-facebook.bml 2011-02-03 09:56:19 UTC (rev 9988)
+++ trunk/htdocs/identity/callback-facebook.bml 2011-02-03 10:12:52 UTC (rev 9989)
@@ -74,6 +74,11 @@
'userdata' => $fb_userdata,
}, \$created);
+ # send out a P3P header thing so as to work around IE's
+ # unwillingness to receive our cookies while we're in an iframe
+ # affects the partner sites authorization
+ LJ::Session->allow_login_from_iframe;
+
$u->make_login_session('long', 0);
LJ::set_remote($u);
Modified: trunk/htdocs/identity/callback-twitter.bml
===================================================================
--- trunk/htdocs/identity/callback-twitter.bml 2011-02-03 09:56:19 UTC (rev 9988)
+++ trunk/htdocs/identity/callback-twitter.bml 2011-02-03 10:12:52 UTC (rev 9989)
@@ -52,6 +52,11 @@
'userdata' => $twu,
}, \$created);
+ # send out a P3P header thing so as to work around IE's
+ # unwillingness to receive our cookies while we're in an iframe
+ # affects the partner sites authorization
+ LJ::Session->allow_login_from_iframe;
+
$u->make_login_session('long', 0);
LJ::set_remote($u);
