| 1 | <?php |
||
| 8 | class Reauthenticate |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Number of minutes a successful Reauthentication is valid. |
||
| 12 | * |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $reauthTime = 30; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Validate a reauthenticated Session data. |
||
| 19 | * |
||
| 20 | * @param \Illuminate\Session\Store $session |
||
| 21 | * |
||
| 22 | * @return bool |
||
| 23 | */ |
||
| 24 | private function validAuth($session) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Handle an incoming request. |
||
| 34 | * |
||
| 35 | * @param \Illuminate\Http\Request $request |
||
| 36 | * @param \Closure $next |
||
| 37 | * |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | public function handle($request, Closure $next) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Handle invalidated auth. |
||
| 53 | * |
||
| 54 | * @return mixed |
||
| 55 | */ |
||
| 56 | protected function invalidated($request) |
||
| 60 | } |
||
| 61 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.