updating small things

This commit is contained in:
jakani24
2024-06-05 22:21:19 +02:00
parent 05004c97e4
commit bb2c884c09
16 changed files with 47 additions and 51 deletions

View File

@@ -2,7 +2,6 @@
//with db:
require_once 'WebAuthn.php';
// Assuming you've already established a database connection here
include "../../../config.php";
$conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD,$DB_DATABASE);
if ($conn->connect_error) {
@@ -170,7 +169,7 @@ try {
// Authentication success
//set sessionso user is authenticated
$_SESSION["username"]=$row["username"];
$_SESSION["username"]=htmlspecialchars($row["username"]);
$_SESSION["login"]=true;
$_SESSION["perms"]=$row["perms"];
$_SESSION["email"]=$row["email"];