| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class ResetPasswordController extends BaseController |
||
| 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 AuthorizesRequests, DispatchesJobs, ValidatesRequests, ResetsPasswords; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Where to redirect users after resetting their password. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $redirectTo = '/dashboard'; |
||
| 32 | |||
| 33 | protected function redirectTo() { |
||
| 34 | return '/' . Auth::user()->roles()->first()->redirect; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Create a new controller instance. |
||
| 39 | * |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | public function __construct() |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths