From 3ab7beed08c0b0a1aedfd1e2e1adcab2c6e4e559 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 9 Dec 2025 16:54:27 +0500 Subject: fix: ACCOUNT_SECRET_KEY_LENGTH does not exist --- account/security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/security.php b/account/security.php index 11738dc..53cf59d 100644 --- a/account/security.php +++ b/account/security.php @@ -41,7 +41,7 @@ $db->prepare("UPDATE user_preferences SET private_profile = ? WHERE id = ?") if (intval($_POST["signout-everywhere"] ?? "0") == 1) { $db->prepare("UPDATE users SET secret_key = ? WHERE id = ?") - ->execute([generate_random_string(ACCOUNT_SECRET_KEY_LENGTH), $_SESSION["user_id"]]); + ->execute([generate_random_string(CONFIG['account']['secretkeylength']), $_SESSION["user_id"]]); session_unset(); session_destroy(); -- cgit v1.2.3