API: Add "messagecode" to AuthManager responses
Following the same logic that the API uses for assigning codes to warnings and errors. Bug: T158609 Change-Id: I4e1a4f252e12e990727e8e9ada4ea00c526e3f8f
This commit is contained in:
parent
9976107c45
commit
34ddf8b51a
1 changed files with 1 additions and 0 deletions
|
|
@ -208,6 +208,7 @@ class ApiAuthManagerHelper {
|
||||||
$res->status === AuthenticationResponse::RESTART
|
$res->status === AuthenticationResponse::RESTART
|
||||||
) {
|
) {
|
||||||
$this->formatMessage( $ret, 'message', $res->message );
|
$this->formatMessage( $ret, 'message', $res->message );
|
||||||
|
$ret['messagecode'] = ApiMessage::create( $res->message )->getApiCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $res->status === AuthenticationResponse::FAIL ||
|
if ( $res->status === AuthenticationResponse::FAIL ||
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue