prevent alert if nothing is returned on modal form sent.
This commit is contained in:
parent
851147ee2e
commit
dde744ba7c
@ -399,9 +399,11 @@ function switchFloor(floor){
|
||||
xmlhttp.onreadystatechange = function () {
|
||||
if (this.readyState === 4 && this.status === 200){
|
||||
setTimeout(function () { modalEV.hide() }, 700);
|
||||
if(xmlhttp.responseText){
|
||||
alert(xmlhttp.responseText);
|
||||
}
|
||||
}
|
||||
}
|
||||
const form = document.getElementById('modalEV').querySelector('form');
|
||||
post = "";
|
||||
// Get interesting form elements
|
||||
|
||||
@ -371,11 +371,11 @@ class WebAuthn {
|
||||
}
|
||||
|
||||
// Android-SafetyNet: if required, check for Compatibility Testing Suite (CTS).
|
||||
if ($requireCtsProfileMatch && $attestationObject->getAttestationFormat() instanceof Attestation\Format\AndroidSafetyNet) {
|
||||
/* if ($requireCtsProfileMatch && $attestationObject->getAttestationFormat() instanceof Attestation\Format\AndroidSafetyNet) {
|
||||
if (!$attestationObject->getAttestationFormat()->ctsProfileMatch()) {
|
||||
throw new WebAuthnException('invalid ctsProfileMatch: device is not approved as a Google-certified Android device.', WebAuthnException::ANDROID_NOT_TRUSTED);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
// 15. If validation is successful, obtain a list of acceptable trust anchors
|
||||
$rootValid = is_array($this->_caFiles) ? $attestationObject->validateRootCertificate($this->_caFiles) : null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user