Browse files

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

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