Update create_acc.php

This commit is contained in:
jakani24
2024-04-26 14:25:23 +02:00
parent 315c60a7e5
commit 3e4e7aabe9

View File

@@ -364,6 +364,7 @@ try {
// Store registration data in the database // Store registration data in the database
$stmt = $conn->prepare("INSERT INTO users (user_hex_id, credential_id, public_key, counter) VALUES (?, ?, ?, ?)"); $stmt = $conn->prepare("INSERT INTO users (user_hex_id, credential_id, public_key, counter) VALUES (?, ?, ?, ?)");
var_dump($data);
$stmt->execute([$userId, $data->credentialId, $data->publicKey, $data->counter]); $stmt->execute([$userId, $data->credentialId, $data->publicKey, $data->counter]);
$msg = 'registration success.'; $msg = 'registration success.';