From 3a5cad0f5fb9461d06b81903763cf504988e8091 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 8 May 2025 01:23:48 +0500 Subject: feat: security section in /account --- public/account/signout.php | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 public/account/signout.php (limited to 'public/account/signout.php') diff --git a/public/account/signout.php b/public/account/signout.php deleted file mode 100644 index 66a0cac..0000000 --- a/public/account/signout.php +++ /dev/null @@ -1,24 +0,0 @@ -prepare("UPDATE users SET secret_key = ? WHERE id = ?"); -$stmt->execute([generate_random_string(32), $_SESSION["user_id"]]); - -session_unset(); -session_destroy(); - -setcookie("secret_key", "", time() - 1000); - -$db = null; - -header("Location: /account"); \ No newline at end of file -- cgit v1.2.3