| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ResetPasswordController extends Controller |
||
| 12 | { |
||
| 13 | /* |
||
| 14 | |-------------------------------------------------------------------------- |
||
| 15 | | Password Reset Controller |
||
| 16 | |-------------------------------------------------------------------------- |
||
| 17 | | |
||
| 18 | | This controller is responsible for handling password reset requests |
||
| 19 | | and uses a simple trait to include this behavior. You're free to |
||
| 20 | | explore this trait and override any methods you wish to tweak. |
||
| 21 | | |
||
| 22 | */ |
||
| 23 | |||
| 24 | use ResetsPasswords; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Where to redirect users after resetting their password. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $redirectTo = '/dashboard'; |
||
| 32 | protected $email; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Create a new controller instance. |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | 12 | public function __construct() |
|
| 40 | { |
||
| 41 | 12 | $this->middleware('guest'); |
|
| 42 | 12 | $this->email = '[email protected]'; |
|
| 43 | 12 | } |
|
| 44 | |||
| 45 | 2 | protected function resetPassword($user, $password) |
|
| 55 | 2 | } |
|
| 56 | } |
||
| 57 |