| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function verify(array $envData) |
||
| 31 | { |
||
| 32 | $otpType = InputValidation::twoFactorType($envData['username']); |
||
| 33 | $commonName = InputValidation::commonName($envData['common_name']); |
||
| 34 | $otpValue = InputValidation::twoFactorValue($envData['password']); |
||
| 35 | |||
| 36 | $this->serverClient->post('verify_two_factor', ['common_name' => $commonName, 'two_factor_type' => $otpType, 'two_factor_value' => $otpValue]); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |