added delete function to th application

This commit is contained in:
Patryk Hegenberg 2023-01-08 20:24:13 +01:00
parent 204e212fb8
commit a19e40f205
7 changed files with 74 additions and 10 deletions

View file

@ -14,8 +14,11 @@ if (isset($_POST["submit"])) {
if (password_verify($_POST['password'], $stmt["password"])) {
session_start();
$_SESSION["username"] = $stmt['username'];
//require "views/profile.php";
//urlIs("/profile");
$_SESSION["level"] = $stmt['level'];
$_SESSION["xp"] = $stmt['xp'];
$_SESSION["coins"] = $stmt['coins'];
$_SESSION["lesson_count"] = $stmt['lesson_count'];
header("Location: /profile");
} else {
echo "Anmeldung fehlgeschlagen!";