| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function handle($request, Closure $next) |
||
| 22 | { |
||
| 23 | if ($request->method() == "POST") { |
||
| 24 | if (in_array($request->path(), config('irfa.lockout.protected_action_path'))) { |
||
| 25 | if ($this->lockLogin()) { |
||
| 26 | $this->eventFailedLogin(); |
||
| 27 | $this->logging("API"); |
||
| 28 | $message['code'] = 403; |
||
|
|
|||
| 29 | $message[config('irfa.lockout.message_name')] = Lang::get('lockoutMessage.locked'); |
||
| 30 | return response()->json($message); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 | return $next($request); |
||
| 35 | } |
||
| 37 |