Skip to content

Commit

Permalink
QA: Minor fixup to #5732
Browse files Browse the repository at this point in the history
Wrong variable use.
  • Loading branch information
TheWitness committed Apr 20, 2024
1 parent d6aacc5 commit f0ca5c5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/auth.php
Expand Up @@ -110,6 +110,13 @@
$_SESSION[SESS_USER_AGENT] = $_SERVER['HTTP_USER_AGENT'];
$_SESSION[SESS_CLIENT_ADDR] = get_client_addr();

cacti_log("LOGIN: User '" . $current_user['username'] . "' authenticated via Basic Authentication.", false, 'AUTH');

db_execute_prepared('INSERT IGNORE INTO user_log
(username, user_id, result, ip, time)
VALUES (?, ?, 1, ?, NOW())',
array($username, $current_user['id'], $_SESSION[SESS_CLIENT_ADDR]));

return true;
} else {
require_once(CACTI_PATH_BASE . '/auth_login.php');
Expand Down

0 comments on commit f0ca5c5

Please sign in to comment.