Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function handle($request, Closure $next) |
||
1 ignored issue
–
show
|
|||
13 | { |
||
14 | $authenticator = app(Authenticator::class)->boot($request); |
||
15 | |||
16 | if (!$authenticator->isActivated()) { |
||
17 | throw new TwoFactorRequiredException(); |
||
18 | } |
||
19 | |||
20 | return parent::handle($request, $next); |
||
21 | } |
||
23 |