Skip to content
Permalink
Browse files

Saving few Router::normalize() calls, will may increase performance. F…

…ixes #179.
  • Loading branch information...
renan committed Oct 20, 2009
1 parent 52180d5 commit a15289fba87f3b3b5a9add16efa3ac9250c85bd8
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/libs/controller/components/auth.php
@@ -421,10 +421,10 @@ function __setDefaults() {
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),

0 comments on commit a15289f

Please sign in to comment.
You can’t perform that action at this time.