lastlogin

This commit is contained in:
Walter Hupfeld 2024-02-22 17:18:18 +01:00
parent 7c658e28f9
commit bb53850c3e

View File

@ -32,6 +32,7 @@ $boolLogin=true;
$_SESSION['user']=$strUser;
$_SESSION['csrf_token'] = uniqid('', true);
$_SESSION['superadmin'] = $row['role']=="admin";
$db->query("UPDATE `user` SET `lastlogin`= NOW() WHERE `username`='$strUser'");
header ("Location: index.php");
} else {
$boolLogin=false;