| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function __invoke(Request $request) |
||
| 17 | { |
||
| 18 | // If the user is trying to visit the page without a token or email address, show 404 error |
||
| 19 | if(empty($request->token) || empty($request->email)) |
||
| 20 | { |
||
| 21 | abort(404); |
||
| 22 | } |
||
| 23 | |||
| 24 | return Inertia::render('Auth/password/reset', [ |
||
| 25 | 'token' => $request->token, |
||
| 26 | 'email' => $request->email, |
||
| 27 | ]); |
||
| 30 |