minor fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<title>Punktesystem</title>
|
<title>Punktesystem</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<input id="text" type="text" name="user_name"><br><br>
|
<input id="text" type="text" name="user_name"><br><br>
|
||||||
<input id="text" type="password" name="password"><br><br>
|
<input id="text" type="password" name="password" autocomplete="off"><br><br>
|
||||||
|
|
||||||
<input id="button" type="submit" value="Login"><br><br>
|
<input id="button" type="submit" value="Login"><br><br>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ function check_login($con) {
|
|||||||
if(check_user_id($con, $id)) {
|
if(check_user_id($con, $id)) {
|
||||||
return get_user_data_id($con, $id);
|
return get_user_data_id($con, $id);
|
||||||
} else {
|
} else {
|
||||||
|
unset($_SESSION['user_id']);
|
||||||
header("Location: login.php");
|
header("Location: login.php");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user