Fix Recent Logins Log front not updating due to VAR name

This commit is contained in:
johnnyq
2021-08-31 13:24:33 -04:00
parent 2ec79ef014
commit e9336c1866
9 changed files with 29 additions and 54 deletions

View File

@@ -42,7 +42,7 @@ if(isset($_POST['login'])){
if(empty($token)){
$_SESSION['logged'] = TRUE;
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Login', log_action = 'Success', log_description = '$ip - $os - $browser - $device', log_created_at = NOW(), user_id = $user_id");
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Login', log_action = 'Success', log_description = '$ip - $os - $browser - $device', log_created_at = NOW(), log_user_id = $user_id");
header("Location: dashboard.php");
}else{