mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Prevent credentials from being leaked in backtrace in some instances (#9817)
* Prevent credentials from being leak in backtrace in some instances Particularly before the user is authenticated * fix test
This commit is contained in:
@@ -52,9 +52,9 @@ class ADAuthorizationAuthorizer extends MysqlAuthorizer
|
||||
}
|
||||
}
|
||||
|
||||
public function authenticate($username, $password)
|
||||
public function authenticate($credentials)
|
||||
{
|
||||
if ($this->userExists($username)) {
|
||||
if (isset($credentials['username']) && $this->userExists($credentials['username'])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user