From 1b35cf3f1124b161ebde5e9e3a2c74c8ea2821d0 Mon Sep 17 00:00:00 2001 From: Connor Thomson Date: Sun, 20 Sep 2026 21:01:48 -0700 Subject: Add status and more --- signup/verify/verify.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'signup/verify/verify.php') diff --git a/signup/verify/verify.php b/signup/verify/verify.php index 592915f..9e22132 100755 --- a/signup/verify/verify.php +++ b/signup/verify/verify.php @@ -47,7 +47,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { exit; } - if ($real_code == '0001') { + if ($user['status'] == 'none') { echo "Account is already verifed"; exit; } @@ -58,11 +58,12 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { } try { - $sql = "UPDATE users SET verification_code = :code WHERE id = :id"; + $sql = "UPDATE users SET verification_code = :code, status = :status WHERE id = :id"; $statement = query($sql, [ - 'code' => '0001', - 'id' => $user_id + 'code' => '0000', + 'status' => 'member', + 'id' => $user_id ]); if ($statement->rowCount() == 0) { -- cgit v1.2.3