codebunch /
silverstripe-user-management
| 1 | <?php |
||
| 2 | namespace UserManagement\Page; |
||
| 3 | |||
| 4 | use PageController; |
||
|
0 ignored issues
–
show
|
|||
| 5 | use SilverStripe\Security\MemberAuthenticator\LostPasswordHandler; |
||
| 6 | use SilverStripe\Security\MemberAuthenticator\LostPasswordForm; |
||
| 7 | use SilverStripe\Security\MemberAuthenticator\MemberAuthenticator; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Class LostPasswordPageController |
||
| 11 | * |
||
| 12 | * @package user-management |
||
| 13 | */ |
||
| 14 | class LostPasswordPageController extends PageController |
||
| 15 | { |
||
| 16 | private static $url_segment = 'forgotten-password'; |
||
|
0 ignored issues
–
show
|
|||
| 17 | |||
| 18 | private $authenticatorClass = MemberAuthenticator::class; |
||
| 19 | |||
| 20 | private static $allowed_actions = array('LostPasswordForm'); |
||
|
0 ignored issues
–
show
|
|||
| 21 | |||
| 22 | /** |
||
| 23 | * Returns the default lost password form. |
||
| 24 | * |
||
| 25 | * @return \SilverStripe\Security\MemberAuthenticator\LostPasswordForm |
||
| 26 | */ |
||
| 27 | 1 | public function LostPasswordForm() |
|
| 28 | { |
||
| 29 | 1 | return LostPasswordForm::create( |
|
| 30 | 1 | LostPasswordHandler::create('/Security/lostpassword/'), |
|
| 31 | 1 | $this->authenticatorClass, |
|
| 32 | 1 | 'lostPasswordForm', |
|
| 33 | 1 | null, |
|
| 34 | 1 | null, |
|
| 35 | 1 | false |
|
| 36 | ); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |
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