Skip to content
Permalink
Browse files

Fix additional case of REST API auth with show_realname = ON

Follow-up on issue #23225, as reported by @johgoe [1]

Fixes #23692

[1] https://mantisbt.org/bugs/view.php?id=23225#c58294
  • Loading branch information...
dregad committed Dec 3, 2017
1 parent c11d2bf commit 08d5c40073debdc7150042d42dee159efa9460c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 api/rest/restcore/AuthMiddleware.php
@@ -59,7 +59,7 @@ public function __invoke( \Slim\Http\Request $request, \Slim\Http\Response $resp
# use api token
$t_login_method = LOGIN_METHOD_API_TOKEN;
$t_password = $t_authorization_header;
$t_username = user_get_name( $t_user_id );
$t_username = user_get_username( $t_user_id );
}
if( mci_check_login( $t_username, $t_password ) === false ) {

0 comments on commit 08d5c40

Please sign in to comment.
You can’t perform that action at this time.