1 | <?php |
||
7 | class AdminSecurity extends Security |
||
|
|||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private static $allowed_actions = [ |
||
13 | 'passwordsent', |
||
14 | 'ChangePasswordForm', |
||
15 | ]; |
||
16 | |||
17 | /** |
||
18 | * Template thats used to render the pages. |
||
19 | * |
||
20 | * @config |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | private static $template_main = 'AdminLogin'; |
||
25 | |||
26 | /** |
||
27 | * @return void |
||
28 | */ |
||
29 | public function init() |
||
46 | |||
47 | /** |
||
48 | * @param null $action |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public function Link($action = null) |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public static function isAdminLogin() |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public static function getBackUrl() |
||
77 | |||
78 | /** |
||
79 | * @param SS_HTTPRequest $request |
||
80 | * |
||
81 | * @return SS_HTTPResponse|HTMLText |
||
82 | */ |
||
83 | public function passwordsent($request) |
||
87 | |||
88 | /** |
||
89 | * @see Security::getPasswordResetLink() |
||
90 | * We overload this, so we can add the BackURL to the password resetlink |
||
91 | * |
||
92 | * @param Member $member |
||
93 | * @param string $autologinToken |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | public static function getPasswordResetLink($member, $autologinToken) |
||
105 | |||
106 | /** |
||
107 | * @return ChangePasswordForm |
||
108 | */ |
||
109 | public function ChangePasswordForm() |
||
113 | } |
||
114 |
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.