From 68e0312c848fac71fc71c2984c992fce0f79a406 Mon Sep 17 00:00:00 2001 From: zontreck Date: Thu, 16 May 2024 00:48:25 -0700 Subject: [PATCH] Initially set a user account to inactive (until they complete setup by logging into their account) --- php/Register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/Register.php b/php/Register.php index 7883116..6dfa2f7 100644 --- a/php/Register.php +++ b/php/Register.php @@ -24,7 +24,7 @@ if($clientKey == CLIENTPSK) { $DB = get_DB(); $DB->query("INSERT INTO `auth` (UUID, passwordHash, passwordSalt, webLoginKey, accountType) VALUES ('$ID', '$pwhash', '$salt', '".NULLKEY."', 'UserAccount');"); - $DB->query("INSERT INTO `UserAccounts` (PrincipalID, ScopeID, FirstName, LastName, Email, ServiceURLs, Created, UserLevel, UserFlags, UserTitle, active) VALUES ('$ID', '".NULLKEY."', '$first', '$last', '$email', '', '".time()."', '$level', '0', '$title', '1');"); + $DB->query("INSERT INTO `UserAccounts` (PrincipalID, ScopeID, FirstName, LastName, Email, ServiceURLs, Created, UserLevel, UserFlags, UserTitle, active) VALUES ('$ID', '".NULLKEY."', '$first', '$last', '$email', '', '".time()."', '$level', '0', '$title', '0');"); die(json_encode(array("done"=>true, "type"=> "S2CSimpleReply")));