Saving few Router::normalize() calls, will may increase performance. Fixes #179.

This commit is contained in:
renan.saddam 2009-10-20 16:16:31 -02:00
parent 52180d50c5
commit a15289fba8

View file

@ -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),