mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Saving few Router::normalize() calls, will may increase performance. Fixes #179.
This commit is contained in:
parent
52180d50c5
commit
a15289fba8
1 changed files with 3 additions and 3 deletions
|
@ -421,10 +421,10 @@ class AuthComponent extends Object {
|
|||
return false;
|
||||
}
|
||||
$defaults = array(
|
||||
'loginAction' => Router::normalize(array(
|
||||
'controller'=> Inflector::underscore(Inflector::pluralize($this->userModel)),
|
||||
'loginAction' => array(
|
||||
'controller' => Inflector::underscore(Inflector::pluralize($this->userModel)),
|
||||
'action' => 'login'
|
||||
)),
|
||||
),
|
||||
'sessionKey' => 'Auth.' . $this->userModel,
|
||||
'logoutRedirect' => $this->loginAction,
|
||||
'loginError' => __('Login failed. Invalid username or password.', true),
|
||||
|
|
Loading…
Add table
Reference in a new issue