diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-09 16:54:27 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-09 16:54:27 +0500 |
| commit | 3ab7beed08c0b0a1aedfd1e2e1adcab2c6e4e559 (patch) | |
| tree | dadb8a1bff72d4a34194189f85e631078da9a5e5 | |
| parent | 8925a9526a1d3eac914030b3069713f56c37e55a (diff) | |
fix: ACCOUNT_SECRET_KEY_LENGTH does not exist
| -rw-r--r-- | account/security.php | 2 |
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(); |
