Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/79912


Change subject: Made sanity code to prevent session use actually work.
......................................................................

Made sanity code to prevent session use actually work.

Change-Id: I3d06ab29b6255b925b3a83aab12ca0dbaa3496fc
---
M api/MWOAuthAPI.setup.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OAuth 
refs/changes/12/79912/1

diff --git a/api/MWOAuthAPI.setup.php b/api/MWOAuthAPI.setup.php
index 24fac82..26d1522 100644
--- a/api/MWOAuthAPI.setup.php
+++ b/api/MWOAuthAPI.setup.php
@@ -123,7 +123,7 @@
                                wfSetupSession( $sessionId ); // create/reuse 
this "anonymous" session
                                Hooks::register( 'AfterFinalPageOutput', 
function( $out ) {
                                        // Just in case, make sure this is not 
a valid login session for sanity
-                                       
RequestContext::getMain()->getRequest()->setSessionData( 'wsUserName', null );
+                                       
RequestContext::getMain()->getRequest()->setSessionData( 'wsUserID', 0 );
                                } );
 
                                $result = true;

-- 
To view, visit https://gerrit.wikimedia.org/r/79912
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3d06ab29b6255b925b3a83aab12ca0dbaa3496fc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OAuth
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to