Update file permissions and enhance error handling in login template and setup scripts
This commit is contained in:
1 parent
c94122c9fd
commit
313ffec92c
7 files changed
+36
-1
No files matched your search
@@ -29,6 +29,14 @@ if (is_file(APP_PATH . "database.db")) {
|
||||
]);
|
||||
}
|
||||
|
||||
// Check PDO drivers
|
||||
if (!extension_loaded("pdo_sqlite") || !extension_loaded("sqlite3")) {
|
||||
$api->answer(500, [
|
||||
"error" => "missing_drives",
|
||||
"error_text" => "Please install the extensions pdo_sqlite and sqlite3."
|
||||
]);
|
||||
}
|
||||
|
||||
$username = $input["username"];
|
||||
$password = $input["password"];
|
||||
$password_repeat = $input["password_repeat"];
|
||||
|
||||
Reference in new issue
Block a user