Conditions | 6 |
Paths | 5 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function handle($request, Closure $next) |
||
24 | { |
||
25 | if($this->exceptAccount()){ |
||
26 | return $next($request); |
||
27 | } else{ |
||
28 | if ($request->method() == "POST") { |
||
29 | if (in_array($request->path(), config('irfa.lockout.protected_action_path'))) { |
||
30 | if ($this->lockLogin()) { |
||
31 | $this->eventFailedLogin(); |
||
32 | $this->logging(); |
||
33 | Session::flash(config('irfa.lockout.message_name'), Lang::get('lockoutMessage.locked')); |
||
34 | return redirect(empty(config('irfa.lockout.redirect_url')) ? "/" : URL::to(config('irfa.lockout.redirect_url'))); |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 | return $next($request); |
||
40 | } |
||
42 |