summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-05-08 17:28:53 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-05-08 17:28:53 -0600
commita09d9f377f5c055e42e5f21b5cdea64c2e2ca896 (patch)
treef6c0f8d09454b6e887df0f66ca37c1ce9efb30d0
parent5c3d6b49d5db5bb3504191933dd171b54219c2b3 (diff)
Default user level
-rw-r--r--includes/functions_user.php2
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);
}