feat: add hability to disable login (#378)

This commit is contained in:
Miguel Ribeiro
2024-06-08 00:04:50 +02:00
committed by GitHub
parent f79a3f9957
commit 092be22183
28 changed files with 205 additions and 12 deletions
+8
View File
@@ -27,4 +27,12 @@ if ($customColors) {
$settings['customColors'] = $customColors;
}
$query = "SELECT * FROM admin";
$result = $db->query($query);
$adminSettings = $result->fetchArray(SQLITE3_ASSOC);
if ($adminSettings) {
$settings['disableLogin'] = $adminSettings['login_disabled'];
}
?>