From 1d957929517d056c0851cfdf242d75359c1282d1 Mon Sep 17 00:00:00 2001 From: Lord_Ralex Date: Fri, 3 Apr 2015 16:31:15 -0500 Subject: [PATCH] Autoapprove accounts for now --- functions/panel/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/panel/user.php b/functions/panel/user.php index e630f13..08879aa 100644 --- a/functions/panel/user.php +++ b/functions/panel/user.php @@ -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);