Conditions | 6 |
Paths | 6 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | protected function canPassWithoutCheckingOTP(): bool |
||
11 | { |
||
12 | if (! $this->getUser()->passwordSecurity) { |
||
13 | return true; |
||
14 | } |
||
15 | |||
16 | return |
||
17 | ! $this->getUser()->passwordSecurity->google2fa_enable || |
||
18 | ! $this->isEnabled() || |
||
19 | $this->noUserIsAuthenticated() || |
||
20 | $this->twoFactorAuthStillValid() || |
||
21 | $this->isDeviceTrusted(); |
||
22 | } |
||
76 |