mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Removing strlower() calls as they are not needed in php5 land.
This commit is contained in:
parent
af2a5123b5
commit
3c6fc55eed
1 changed files with 2 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue