Skip to content

Commit eb3eac4

Browse files
authored
Fixed register rank
1 parent 804b0af commit eb3eac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

register.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
if($_POST["pw"] == $_POST["pw2"]){
4545
$time = time();
4646
$stmt = $mysql->prepare("INSERT INTO accounts (USERNAME, EMAIL, PASSWORD, LASTLOGIN, FIRSTLOGIN, ACCOUNTRANK) VALUES (
47-
:user, :mail, :pw, :time, :time, 1
47+
:user, :mail, :pw, :time, :time, 0
4848
)");
4949
$hash = password_hash($_POST["pw"], PASSWORD_BCRYPT);
5050
$stmt->execute(array(":user" => $_POST["username"], ":mail" => $_POST["email"], ":pw" => $hash, ":time" => $time));

0 commit comments

Comments
 (0)