| Conditions | 3 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function auth(Request $request): RedirectResponse |
||
| 20 | { |
||
| 21 | $credentials = [ |
||
| 22 | 'email' => $request->post('email'), |
||
| 23 | 'password' => $request->post('password') |
||
| 24 | ]; |
||
| 25 | |||
| 26 | $emailCheck = Str::is('[email protected]', $credentials['email']); |
||
|
|
|||
| 27 | $passwordCheck = Str::is('adminTest!123', $credentials['password']); |
||
| 28 | $checksPassed = $emailCheck && $passwordCheck; |
||
| 29 | |||
| 30 | if ($checksPassed) { |
||
| 31 | return redirect(route('kield01.mdp.dashboard.index')); |
||
| 32 | } |
||
| 33 | |||
| 34 | return redirect() |
||
| 35 | ->back() |
||
| 36 | ->with($credentials); |
||
| 37 | } |
||
| 44 |