Anomie has uploaded a new change for review.

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

Change subject: Fix API login after I7c957e1e
......................................................................

Fix API login after I7c957e1e

Prior to change I7c957e1e, API logins were done as if the "keep me
logged in" checkbox was checked. That change altered this for no
apparent reason.

Bug: 64727
Change-Id: I7fcca2a1eabcac3b2c232cd05d9989af85cc3ed0
(cherry picked from commit 2036b0d551611e5ff034818a64b4d1991ee6fbe0)
---
M includes/api/ApiLogin.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/72/131472/1

diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php
index f2a9d1a..46e2a53 100644
--- a/includes/api/ApiLogin.php
+++ b/includes/api/ApiLogin.php
@@ -86,7 +86,7 @@
                        case LoginForm::SUCCESS:
                                $user = $context->getUser();
                                $this->getContext()->setUser( $user );
-                               $user->setCookies( $this->getRequest() );
+                               $user->setCookies( $this->getRequest(), null, 
true );
 
                                ApiQueryInfo::resetTokenCache();
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7fcca2a1eabcac3b2c232cd05d9989af85cc3ed0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.24wmf3
Gerrit-Owner: Anomie <bjor...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to