Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Controller/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* @property ForgotPass $ForgotPass
* @property NetCommonsComponent $NetCommons
* @property User $User
* @property DeprecatedBrowserComponent $DeprecatedBrowser
*
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @package NetCommons\Auth\Controller
Expand All @@ -34,6 +35,7 @@ class AuthController extends AuthAppController {
*/
public $components = array(
'Security',
'NetCommons.DeprecatedBrowser',
);

/**
Expand Down Expand Up @@ -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');

Expand Down
4 changes: 2 additions & 2 deletions Locale/eng/LC_MESSAGES/auth.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down