mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-23 22:30:41 +01:00
fixed missing notification, if user exist, but password wrong
This commit is contained in:
parent
c6df17af7f
commit
35fd7ca908
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,12 @@ if ($result->num_rows == 1)
|
||||||
$insertQuery->execute();
|
$insertQuery->execute();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
setcookie("token", "false", 0, "/", "");
|
||||||
|
header("Location: /");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
$lastLoginDate = date("Y-m-d H:i:s");
|
$lastLoginDate = date("Y-m-d H:i:s");
|
||||||
$updateQuery = $mysqli->prepare("UPDATE `users` SET `last_login` = ? WHERE `uid` = ?;");
|
$updateQuery = $mysqli->prepare("UPDATE `users` SET `last_login` = ? WHERE `uid` = ?;");
|
||||||
$updateQuery->bind_param("ss", $lastLoginDate, $userdetails["uid"]);
|
$updateQuery->bind_param("ss", $lastLoginDate, $userdetails["uid"]);
|
||||||
|
|
Loading…
Reference in a new issue