- Timestamp:
- 08/26/24 14:20:34 (3 months ago)
- Branches:
- main
- Children:
- 3c89e27
- Parents:
- 8a258ab
- Location:
- app/Http
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/SessionsController.php
r8a258ab r5372778 54 54 if ($this->verifyPassword($password, $value, $value2)) { 55 55 // Authentication passed 56 Session::put('auth', true); 56 57 Session::put('badge_no', $badge_no); 57 58 Session::put('is_policeman', $policeman); -
app/Http/Kernel.php
r8a258ab r5372778 22 22 \App\Http\Middleware\TrimStrings::class, 23 23 \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, 24 ]; 25 protected $routeMiddleware = [ 26 // other middleware 27 'policeman' => \App\Http\Middleware\CheckPoliceman::class, 28 'officer' => \App\Http\Middleware\CheckOfficer::class, 29 'both' => \App\Http\Middleware\CheckBoth::class, 24 30 ]; 25 31
Note:
See TracChangeset
for help on using the changeset viewer.