Added logging message for API authentication failure

This commit is contained in:
Frederic Guillot 2016-03-12 19:12:27 -05:00
parent 718517e7b2
commit ca69fc0be7
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class Auth extends Base
} elseif ($this->isAppAuthenticated($username, $password)) {
$this->checkProcedurePermission(false, $method);
} else {
$this->logger->error('API authentication failure for '.$username);
throw new AuthenticationFailure('Wrong credentials');
}
}