added delete function to th application
This commit is contained in:
parent
204e212fb8
commit
a19e40f205
7 changed files with 74 additions and 10 deletions
|
|
@ -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!";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue