Removing strlower() calls as they are not needed in php5 land.

This commit is contained in:
mark_story 2010-12-21 23:45:47 -05:00
parent af2a5123b5
commit 3c6fc55eed

View file

@ -319,7 +319,6 @@ class SecurityComponent extends Component {
}
$this->loginOptions = array_merge($base, $this->loginOptions);
$this->_requireMethod('Login', $args);
if (isset($this->loginOptions['users'])) {
$this->loginUsers =& $this->loginOptions['users'];
}
@ -555,9 +554,9 @@ class SecurityComponent extends Component {
*/
protected function _loginRequired($controller) {
if (is_array($this->requireLogin) && !empty($this->requireLogin)) {
$requireLogin = array_map('strtolower', $this->requireLogin);
$requireLogin = $this->requireLogin;
if (in_array($this->_action, $requireLogin) || $this->requireLogin == array('*')) {
if (in_array($this->_action, $this->requireLogin) || $this->requireLogin == array('*')) {
$login = $this->loginCredentials($this->loginOptions['type']);
if ($login == null) {