Skip to content

Commit

Permalink
Autoapprove accounts for now
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Apr 3, 2015
1 parent e89ef4a commit 1d95792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/panel/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static function create($email, $username, $password) {
} else {
$createUserStatement = self::$database->prepare('INSERT INTO users (uuid,username,email,password,verified,approved) values (?,?,?,?,?,?)');
$hashedPW = password_hash($password, PASSWORD_DEFAULT);
$createUserStatement->execute(array(Utilities::generateGUID(), $username, $email, $hashedPW, 0, 0));
$createUserStatement->execute(array(Utilities::generateGUID(), $username, $email, $hashedPW, 0, 1));

$verificationStatement = self::$database->prepare('INSERT INTO verification (email, code) VALUES (?, ?)');
$approveKey = Utilities::generate_string(32);
Expand Down

0 comments on commit 1d95792

Please sign in to comment.