summaryrefslogtreecommitdiff
path: root/lib/accounts.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/accounts.php')
-rw-r--r--lib/accounts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/accounts.php b/lib/accounts.php
index 51cb3f6..2ddb796 100644
--- a/lib/accounts.php
+++ b/lib/accounts.php
@@ -28,7 +28,7 @@ function authorize_user(bool $required = false): bool
include_once "config.php";
- $db = new PDO(DB_URL, DB_USER, DB_PASS);
+ $db = new PDO(CONFIG['database']['url'], CONFIG['database']['user'], CONFIG['database']['pass']);
$key = $_SERVER["HTTP_AUTHORIZATION"] ?? $_COOKIE["secret_key"];