|
@@ 78-82 (lines=5) @@
|
| 75 |
|
return new YubikeyVerificationResult(false, true); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
if (!isset($result['status'])) { |
| 79 |
|
$this->logger->error('Yubikey OTP verification failed; server responded without status report.'); |
| 80 |
|
|
| 81 |
|
return new YubikeyVerificationResult(false, true); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
if ($result['status'] !== 'OK') { |
| 85 |
|
$this->logger->error('Yubikey OTP verification failed; server responded with non-OK status report.'); |
|
@@ 84-88 (lines=5) @@
|
| 81 |
|
return new YubikeyVerificationResult(false, true); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
if ($result['status'] !== 'OK') { |
| 85 |
|
$this->logger->error('Yubikey OTP verification failed; server responded with non-OK status report.'); |
| 86 |
|
|
| 87 |
|
return new YubikeyVerificationResult(false, true); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
return new YubikeyVerificationResult(false, false); |
| 91 |
|
} |