1 | <?php |
||
8 | class LDAPSecurityController extends Security |
||
|
|||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private static $allowed_actions = [ |
||
14 | 'index', |
||
15 | 'lostpassword', |
||
16 | 'LostPasswordForm', |
||
17 | 'ChangePasswordForm', |
||
18 | 'passwordsent' |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * This static function is *intentionally* overloaded from Security so |
||
23 | * the user accesses this controller and uses the LDAP change password |
||
24 | * form rather than the "standard" one provided by Security. |
||
25 | * |
||
26 | * @param Member $member |
||
27 | * @param $autologinToken |
||
28 | * @return string |
||
29 | */ |
||
30 | public static function getPasswordResetLink($member, $autologinToken) |
||
37 | |||
38 | /** |
||
39 | * Factory method for the lost password form |
||
40 | * |
||
41 | * @return Form Returns the lost password form |
||
42 | */ |
||
43 | public function ChangePasswordForm() |
||
47 | |||
48 | public function lostpassword() |
||
85 | |||
86 | /** |
||
87 | * Factory method for the lost password form |
||
88 | * |
||
89 | * @return Form Returns the lost password form |
||
90 | */ |
||
91 | public function LostPasswordForm() |
||
102 | |||
103 | /** |
||
104 | * @param null $action |
||
105 | * @return String |
||
106 | */ |
||
107 | public function Link($action = null) |
||
111 | |||
112 | /** |
||
113 | * Show the "password sent" page, after a user has requested |
||
114 | * to reset their password. |
||
115 | * |
||
116 | * @param SS_HTTPRequest $request The SS_HTTPRequest for this action. |
||
117 | * @return string Returns the "password sent" page as HTML code. |
||
118 | */ |
||
119 | public function passwordsent($request) |
||
143 | } |
||
144 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.