Changeset 3c89e27 for app/Http/Controllers/SessionsController.php
- Timestamp:
- 08/26/24 16:17:04 (3 months ago)
- Branches:
- main
- Parents:
- 5372778
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/SessionsController.php
r5372778 r3c89e27 24 24 'password' => 'required' 25 25 ]); 26 26 27 $password = $credentials['password']; 27 28 $badge_no = $credentials['badge_no']; 29 if (!is_numeric($badge_no)) { 30 // Redirect back with an error message 31 return back()->withErrors(['password' => 'Invalid credentials']); 32 } 28 33 // mozhe da se najavi kako policaec i kako officer, znaeme koj e koj po znachkata 29 34 … … 69 74 return back()->withErrors(['password' => 'Invalid credentials']); 70 75 } 71 72 76 public function logout() 73 77 {
Note:
See TracChangeset
for help on using the changeset viewer.