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/signup.php | |
| parent | 81cabf40f9063f72f04df9b720d7f0e25a185741 (diff) | |
Add status and more
Diffstat (limited to 'signup/signup.php')
| -rwxr-xr-x | signup/signup.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/signup/signup.php b/signup/signup.php index a41454a..7648adf 100755 --- a/signup/signup.php +++ b/signup/signup.php @@ -39,13 +39,14 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { $code = rand(1000, 9999); try { - $sql = "INSERT INTO users (username, email, password, verification_code) VALUES (:username, :email, :password, :code)"; + $sql = "INSERT INTO users (username, email, password, verification_code, status) VALUES (:username, :email, :password, :code, :status)"; $user_id = insert_row($sql, [ 'username' => $username, 'email' => $email, 'password' => $hashed_password, - 'code' => $code + 'code' => $code, + 'status' => 'none' ]); set_user_id($user_id); |
