lastlogin
This commit is contained in:
parent
7c658e28f9
commit
bb53850c3e
@ -32,6 +32,7 @@ $boolLogin=true;
|
|||||||
$_SESSION['user']=$strUser;
|
$_SESSION['user']=$strUser;
|
||||||
$_SESSION['csrf_token'] = uniqid('', true);
|
$_SESSION['csrf_token'] = uniqid('', true);
|
||||||
$_SESSION['superadmin'] = $row['role']=="admin";
|
$_SESSION['superadmin'] = $row['role']=="admin";
|
||||||
|
$db->query("UPDATE `user` SET `lastlogin`= NOW() WHERE `username`='$strUser'");
|
||||||
header ("Location: index.php");
|
header ("Location: index.php");
|
||||||
} else {
|
} else {
|
||||||
$boolLogin=false;
|
$boolLogin=false;
|
||||||
|
Loading…
Reference in New Issue
Block a user