adding keepmeloggedin

This commit is contained in:
Janis Steiner
2024-12-28 17:15:57 +01:00
parent 052c8c4181
commit 5214c96b90
16 changed files with 293 additions and 38 deletions

View File

@@ -74,7 +74,6 @@
permissions VARCHAR(255),
color_profile INT,
auth_key VARCHAR(255),
keepmeloggedin_token VARCHAR(255),
auth_method_keepmeloggedin_enabled INT,
auth_method_enabled_2fa INT,
auth_method_enabled_pw INT,
@@ -135,6 +134,25 @@
</div>';
}
$sql="CREATE TABLE IF NOT EXISTS keepmeloggedin (
id INT AUTO_INCREMENT PRIMARY KEY,
auth_token VARCHAR(256),
user_id INT,
agent VARCHAR(255)
);";
if ($conn->query($sql) === TRUE) {
echo '<br><div class="alert alert-success" role="alert">
Table keepmeloggedin created successfully!
</div>';
} else {
$success=0;
echo '<br><div class="alert alert-danger" role="alert">
Error creating keepmeloggedin users: ' . $conn->error .'
</div>';
}
if($success!==1){