CSteipp has submitted this change and it was merged.
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(-)
Approvals:
CSteipp: Verified; Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I3d06ab29b6255b925b3a83aab12ca0dbaa3496fc
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/OAuth
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: CSteipp <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits