minor fixes

This commit is contained in:
2022-06-08 11:38:45 +02:00
parent faed871b19
commit f3cb6ad436
3 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="de">
<head>
<title>Punktesystem</title>
<meta charset="UTF-8">

View File

@@ -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>

View File

@@ -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;
}