Skip to content

Commit

Permalink
Merge pull request #1020 from itflow-org/logging-credentials
Browse files Browse the repository at this point in the history
Log when users navigate to the credentials page for a client
  • Loading branch information
johnnyq authored Sep 4, 2024
2 parents 281bdcb + 78eead2 commit 3ecd05b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client_logins.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

require_once "inc_all_client.php";

// Log when users load the Credentials/Logins page
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Credential', log_action = 'View', log_description = '$session_name viewed the Credentials page for client', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_client_id = $client_id, log_user_id = $session_user_id");


// Location Filter
if (isset($_GET['location']) & !empty($_GET['location'])) {
Expand Down

0 comments on commit 3ecd05b

Please sign in to comment.