diff options
| -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(); |
