diff --git a/Controller/AuthController.php b/Controller/AuthController.php index 261054f..c68d9b6 100644 --- a/Controller/AuthController.php +++ b/Controller/AuthController.php @@ -21,6 +21,7 @@ * @property ForgotPass $ForgotPass * @property NetCommonsComponent $NetCommons * @property User $User + * @property DeprecatedBrowserComponent $DeprecatedBrowser * * @author Shohei Nakajima * @package NetCommons\Auth\Controller @@ -34,6 +35,7 @@ class AuthController extends AuthAppController { */ public $components = array( 'Security', + 'NetCommons.DeprecatedBrowser', ); /** @@ -113,6 +115,11 @@ public function login() { //$this->_setNc2Authenticate(); if ($this->Auth->login()) { + //非推奨ブラウザチェック + if ($this->DeprecatedBrowser->isDeprecatedBrowser()) { + $this->DeprecatedBrowser->setFlashNotification(); + } + ClassRegistry::removeObject('User'); $this->User = ClassRegistry::init('Users.User'); diff --git a/Locale/eng/LC_MESSAGES/auth.po b/Locale/eng/LC_MESSAGES/auth.po index f805632..414458c 100644 --- a/Locale/eng/LC_MESSAGES/auth.po +++ b/Locale/eng/LC_MESSAGES/auth.po @@ -124,12 +124,12 @@ msgstr "" #: Auth/View/Auth/login.ctp:50 #: Auth/View/ForgotPass/update.ctp:26 msgid "Username" -msgstr "" +msgstr "Login ID" #: Auth/View/Auth/login.ctp:51 #: Auth/View/ForgotPass/update.ctp:27 msgid "Please enter your username." -msgstr "" +msgstr "Please enter your Login ID" #: Auth/View/Auth/login.ctp:57 msgid "Password"