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');