diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-05-08 17:28:53 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-05-08 17:28:53 -0600 |
commit | a09d9f377f5c055e42e5f21b5cdea64c2e2ca896 (patch) | |
tree | f6c0f8d09454b6e887df0f66ca37c1ce9efb30d0 /includes/functions_user.php | |
parent | 5c3d6b49d5db5bb3504191933dd171b54219c2b3 (diff) |
Default user level
Diffstat (limited to 'includes/functions_user.php')
-rw-r--r-- | includes/functions_user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/functions_user.php b/includes/functions_user.php index 4ea1ad1..690350a 100644 --- a/includes/functions_user.php +++ b/includes/functions_user.php @@ -10,7 +10,7 @@ function username_exists(string $username): bool function register_user(string $username, string $pass_hash) { - $sql = "INSERT INTO users(user_name, user_pass, user_date) VALUES(?, ?, NOW());"; + $sql = "INSERT INTO users(user_name, user_pass, user_date, user_level) VALUES(?, ?, NOW(), 0);"; Database::get()->query($sql, "ss", $username, $pass_hash); } |