Fix issues with register page and captcha on both login and register page
This commit is contained in:
1 parent
e63e596830
commit
f33c3ec72c
4 files changed
+115
-105
No files matched your search
@@ -214,9 +214,11 @@ if ($result->num_rows > 0) {
|
||||
http_response_code(500);
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
$register_time = time();
|
||||
|
||||
$stmt = $conn->prepare("INSERT INTO users (username, password, email, api_key, emailconfirm, register_time) VALUES (?, ?, ?, ?, ?, ?)");
|
||||
$stmt->bind_param("ssssssi", $request_username, $hashed_password, $request_email, $api_key, $emailconfirm, time());
|
||||
$stmt->bind_param("sssssi", $request_username, $hashed_password, $request_email, $api_key, $emailconfirm, $register_time);
|
||||
$stmt->execute();
|
||||
|
||||
$response = [
|
||||
|
||||
Reference in new issue
Block a user