Refactor API and database interactions: enhance token management, improve entry handling, and add application name retrieval

This commit is contained in:
marc-go committed 2026-10-06 19:23:15 +02:00
1 parent 9316818753
commit 1a2ee0c176
10 files changed
+79 -19

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ $username = $_POST["username"];
$password = $_POST["password"];
// Prepare SQL Command
$hash = hash("sha256", $password);
$hash = password_hash($password, PASSWORD_DEFAULT);
$command = "SELECT username, password FROM users WHERE username = :username AND password = :password";
$args = [