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:
@@ -101,7 +101,7 @@ try {
|
||||
echo PHP_EOL;
|
||||
|
||||
echo "Authenticate user $test_username: \n";
|
||||
$auth = $authorizer->authenticate($test_username, $test_password);
|
||||
$auth = $authorizer->authenticate(['username' => $test_username, 'password' => $test_password]);
|
||||
unset($test_password);
|
||||
|
||||
if ($auth) {
|
||||
|
Reference in New Issue
Block a user