dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9976107
)
API: Add "messagecode" to AuthManager responses
author
Brad Jorsch
<bjorsch@wikimedia.org>
Tue, 21 Feb 2017 17:06:41 +0000
(12:06 -0500)
committer
Brad Jorsch
<bjorsch@wikimedia.org>
Tue, 21 Feb 2017 17:06:41 +0000
(12:06 -0500)
Following the same logic that the API uses for assigning codes to
warnings and errors.
Bug: T158609
Change-Id: I4e1a4f252e12e990727e8e9ada4ea00c526e3f8f
includes/api/ApiAuthManagerHelper.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiAuthManagerHelper.php
b/includes/api/ApiAuthManagerHelper.php
index
5327d7a
..
d037c36
100644
(file)
--- a/
includes/api/ApiAuthManagerHelper.php
+++ b/
includes/api/ApiAuthManagerHelper.php
@@
-208,6
+208,7
@@
class ApiAuthManagerHelper {
$res->status === AuthenticationResponse::RESTART
) {
$this->formatMessage( $ret, 'message', $res->message );
+ $ret['messagecode'] = ApiMessage::create( $res->message )->getApiCode();
}
if ( $res->status === AuthenticationResponse::FAIL ||