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