@@ -166,7 +166,7 @@ try {
|
||||
$data->userDisplayName = $userDisplayName;
|
||||
|
||||
// Store registration data in the database
|
||||
$credentialId = $data->credentialId;
|
||||
$credentialId = $data->credentialId instanceof \lbuchs\WebAuthn\Binary\ByteBuffer ? $data->credentialId->getBinaryString() : $data->credentialId;
|
||||
$credentialPublicKey = $data->credentialPublicKey;
|
||||
$signatureCounter = (int)$data->signatureCounter;
|
||||
$stmt = $conn->prepare("UPDATE users set credential_id = ?, public_key = ?, counter = ?, auth_method_enabled_passkey = 1, auth_method_required_passkey = 1 WHERE username = ?");
|
||||
|
||||
Reference in New Issue
Block a user