webauthn
This commit is contained in:
parent
91e98b6926
commit
9d9c37a44a
|
@ -594,8 +594,6 @@ class WebauthnProvider extends BaseProvider {
|
||||||
$response = base64_decode($_POST['sig_response']);
|
$response = base64_decode($_POST['sig_response']);
|
||||||
return $webauthnManager->isValidAuthentication($response, $userDn);
|
return $webauthnManager->isValidAuthentication($response, $userDn);
|
||||||
}
|
}
|
||||||
logNewMessage(LOG_ERR, 'Webauthn authentication failed');
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -454,7 +454,7 @@ class PublicKeyCredentialSourceRepositorySQLite implements PublicKeyCredentialSo
|
||||||
$statement->execute(array(':userid' => $publicKeyCredentialUserEntity->getId()));
|
$statement->execute(array(':userid' => $publicKeyCredentialUserEntity->getId()));
|
||||||
$results = $statement->fetchAll();
|
$results = $statement->fetchAll();
|
||||||
foreach ($results as $result) {
|
foreach ($results as $result) {
|
||||||
$jsonArray = json_decode($results[0]['credentialSource'], true);
|
$jsonArray = json_decode($result['credentialSource'], true);
|
||||||
$credentials[] = PublicKeyCredentialSource::createFromArray($jsonArray);
|
$credentials[] = PublicKeyCredentialSource::createFromArray($jsonArray);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -549,7 +549,7 @@ class PublicKeyCredentialSourceRepositorySQLite implements PublicKeyCredentialSo
|
||||||
protected function tableExists(&$pdo, $tableName) {
|
protected function tableExists(&$pdo, $tableName) {
|
||||||
try {
|
try {
|
||||||
$result = $pdo->query("SELECT 1 FROM $tableName LIMIT 1");
|
$result = $pdo->query("SELECT 1 FROM $tableName LIMIT 1");
|
||||||
return ($result === false) ? false : true;
|
return ($result !== false);
|
||||||
} catch (\PDOException $e) {
|
} catch (\PDOException $e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue