diff options
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); } |