| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 38 | public function ssoOn2faEnabled(string $institution): bool |
||
| 39 | { |
||
| 40 | try { |
||
| 41 | return $this->repository->getInstitutionConfiguration($institution)->ssoOn2faEnabled; |
||
| 42 | } catch (InstitutionConfigurationNotFoundException $e) { |
||
| 43 | $this->logger->notice(sprintf('Institution %s is not configured to use SSO on 2FA', $institution)); |
||
| 44 | } |
||
| 45 | return false; |
||
| 46 | } |
||
| 48 |