AdminPanel Formulare hinzugefügt, .gitignore aktualisiert

This commit is contained in:
R40fendt
2026-01-04 17:56:23 +01:00
parent 3c2c8a368e
commit 5cb0b78d27
8 changed files with 85 additions and 20 deletions

View File

@@ -16,7 +16,7 @@ $username=$_GET["username"];
if(!isset($_GET["password"])) die("GET password fehlt");
$password=$_GET["password"];
$result=mysqli_execute_query($db_id,"SELECT `password` FROM `adminpanel-users` WHERE `username`=?;",[$username])->fetch_assoc();
$result=mysqli_execute_query($db_id,"SELECT `password`, `id` FROM `adminpanel-users` WHERE `username`=?;",[$username])->fetch_assoc();
if(!isset($result["password"]))
die('{"error":"Falscher Benutzername","success":false}');
@@ -24,6 +24,7 @@ if(!password_verify($password,$result["password"]))
die('{"error":"Falsches Passwort","success":false}');
$payload=[
"id"=>$result["id"],
"username"=>$username,
"expire"=>time()+3600
];