Update login.php
This commit is contained in:
@@ -29,11 +29,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
$user = mysqli_fetch_assoc($result);
|
$user = mysqli_fetch_assoc($result);
|
||||||
|
|
||||||
if (password_verify($password, $user['password'])) {
|
if (password_verify($password, $user['password'])) {
|
||||||
echo "<pre>";
|
|
||||||
echo "DATA USER DARI DATABASE:\n";
|
|
||||||
var_dump($user);
|
|
||||||
echo "</pre>";
|
|
||||||
exit;
|
|
||||||
|
|
||||||
$_SESSION['user_id'] = (int)$user['id'];
|
$_SESSION['user_id'] = (int)$user['id'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user