Fix: unable to register
All checks were successful
Build and Deploy Zola Website / build_and_deploy (push) Successful in 22s
All checks were successful
Build and Deploy Zola Website / build_and_deploy (push) Successful in 22s
This commit is contained in:
parent
ba11c41147
commit
5989fba225
@ -29,7 +29,7 @@ class User {
|
|||||||
|
|
||||||
$hashedPassword = password_hash($password, PASSWORD_BCRYPT);
|
$hashedPassword = password_hash($password, PASSWORD_BCRYPT);
|
||||||
|
|
||||||
$stmt = $this->db->prepare("INSERT INTO users (username, email, password, points, created_at) VALUES (?, ?, ?, 0, NOW())");
|
$stmt = $this->db->prepare("INSERT INTO users (username, email, password, created_at) VALUES (?, ?, ?, NOW())");
|
||||||
$stmt->bind_param("sss", $username, $email, $hashedPassword);
|
$stmt->bind_param("sss", $username, $email, $hashedPassword);
|
||||||
|
|
||||||
if ($stmt->execute()) {
|
if ($stmt->execute()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user