Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function update(ResetPasswordRequest $request) |
||
26 | { |
||
27 | $user = $this->getUserFromEncryptedToken($request->input('encrypted_token')); |
||
28 | if ($user === false) { |
||
29 | return redirect()->route('cms.password.forgot')->with('invalidResetToken', true); |
||
30 | } |
||
31 | $user->update(['password' => $request->input('password')]); |
||
32 | |||
33 | Auth::guard()->login($user); |
||
34 | |||
35 | return redirect()->route('cms.backend.start'); |
||
36 | } |
||
37 | |||
54 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.