summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-09 16:54:27 +0500
committerilotterytea <iltsu@alright.party>2025-12-09 16:54:27 +0500
commit3ab7beed08c0b0a1aedfd1e2e1adcab2c6e4e559 (patch)
treedadb8a1bff72d4a34194189f85e631078da9a5e5
parent8925a9526a1d3eac914030b3069713f56c37e55a (diff)
fix: ACCOUNT_SECRET_KEY_LENGTH does not exist
-rw-r--r--account/security.php2
1 files changed, 1 insertions, 1 deletions
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();