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:
Brad Jorsch 2017-02-21 12:06:41 -05:00
parent 9976107c45
commit 34ddf8b51a

View file

@ -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 ||