diff --git a/src/Extensions/MemberExtension.php b/src/Extensions/MemberExtension.php index c1c69c1..69c02b2 100644 --- a/src/Extensions/MemberExtension.php +++ b/src/Extensions/MemberExtension.php @@ -36,7 +36,7 @@ class MemberExtension extends DataExtension /** * @param FieldList $fields */ - public function updateCMSFields(FieldList $fields) + protected function updateCMSFields(FieldList $fields) { $fields->removeByName('LoginSessions'); diff --git a/src/Extensions/RememberLoginHashExtension.php b/src/Extensions/RememberLoginHashExtension.php index 5e922f4..5457031 100644 --- a/src/Extensions/RememberLoginHashExtension.php +++ b/src/Extensions/RememberLoginHashExtension.php @@ -26,7 +26,7 @@ class RememberLoginHashExtension extends Extension /** * @return void */ - public function onAfterGenerateToken(): void + protected function onAfterGenerateToken(): void { $loginHandler = Injector::inst()->get(LogInAuthenticationHandler::class); $loginHandler->setRememberLoginHash($this->owner); @@ -35,7 +35,7 @@ public function onAfterGenerateToken(): void /** * @return void */ - public function onAfterRenewToken(): void + protected function onAfterRenewToken(): void { $loginHandler = Injector::inst()->get(LogInAuthenticationHandler::class); $request = Injector::inst()->get(HTTPRequest::class);