Source of file LoginHandler.php
Size: 0,766 Bytes - Last Modified: 2021-12-23T10:57:55+00:00
/var/www/docs.ssmods.com/process/src/src/RememberMyAccount/Security/LoginHandler.php
123456789101112131415161718192021222324252627282930 | <?php namespace WebbuildersGroup\RememberMyAccount\Security; use SilverStripe\Security\Security; use SilverStripe\Security\MemberAuthenticator\LoginHandler as SS_LoginHandler; class LoginHandler extends SS_LoginHandler { private static $allowed_actions = [ 'login', ]; /** * URL handler for the log-in screen * @return array */ public function login() { $title = ''; if (!Security::getCurrentUser() && $this->getRequest()->getSession()->get(CookieAuthenticationHandler::config()->session_key_name) == null) { $title = _t(Security::class . '.LOGIN', 'Log in'); } return [ 'Title' => $title, 'Form' => $this->loginForm(), ]; } } |