Total Complexity | 2 |
Total Lines | 38 |
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; |
||
25 | use DispatchesJobs; |
||
26 | use ValidatesRequests; |
||
27 | use ResetsPasswords; |
||
28 | |||
29 | /** |
||
30 | * Where to redirect users after resetting their password. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $redirectTo = '/dashboard'; |
||
35 | |||
36 | protected function redirectTo() |
||
37 | { |
||
38 | return '/'.Auth::user()->roles()->first()->redirect; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Create a new controller instance. |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | public function __construct() |
||
49 | } |
||
50 | } |
||
51 |
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