diff options
| author | Connor Thomson <blumatrikz@gmail.com> | 2026-09-20 21:01:48 -0700 |
|---|---|---|
| committer | Connor Thomson <blumatrikz@gmail.com> | 2026-09-20 21:01:48 -0700 |
| commit | 1b35cf3f1124b161ebde5e9e3a2c74c8ea2821d0 (patch) | |
| tree | 5f1255ab93943e50685d712a6d49b7ca8e2b484b /signup/verify/verify.php | |
| parent | 81cabf40f9063f72f04df9b720d7f0e25a185741 (diff) | |
Add status and more
Diffstat (limited to 'signup/verify/verify.php')
| -rwxr-xr-x | signup/verify/verify.php | 9 |
1 files changed, 5 insertions, 4 deletions
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) { |
