php - ACL ERR_TOO_MANY_REDIRECTS -


when user access unauthorized url in application, cakephp execute too many redirects.

i don't know why.

i try set parameters unauthorizedredirect , redirecturl, doesn't work.

appcontroller.php

public $components = array(   'debugkit.toolbar',   'session',   'acl',   'auth' => array(     'unauthorizedredirect ' => false,     'loginaction' => array('controller' => 'users', 'action' => 'login'),     'authenticate' => array(       'form' => array(         'usermodel' => 'user',         'fields' => array('username' => 'nickname', 'password' => 'password_hash')       ),     ),     'authorize' => array(       'actions' => array('actionpath' => 'controllers/')     )     // 'autherror' => 'this error shows user tries access part of website protected',   ) ); 

change "actionpath" => "controllers/"

into "actionpath" => "controllers/"

i'm quite sure on case sensitive os.

another thing setup it's "loginredirect" , "logoutredirect" statements: @ moment, if login users/login action redirected same action again , again. testing purpose i'd recommend set both of them root adding code:

'loginredirect' => '/', 'logoutredirect' => '/' 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -