Refactor API and database interactions: enhance token management, improve entry handling, and add application name retrieval
This commit is contained in:
1 parent
9316818753
commit
1a2ee0c176
10 files changed
+79
-19
No files matched your search
+1
-1
@@ -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 = [
|
||||
|
||||
Reference in new issue
Block a user