-
-
Save eddpascoal/9bcfc17fab097c42fe95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public $components = array( | |
'DebugKit.Toolbar', | |
'Session', | |
'Auth' => array( | |
'loginAction' => array('controller' => 'Users', 'action' => 'login'), | |
'logoutRedirect' => array('controller' => 'Users', 'action' => 'login'), | |
'authenticate' => array('Form' => array( | |
'userModel' => 'User', | |
'fields' => array( | |
'username' => 'email', | |
'password' => 'password' | |
), | |
'scope' => array('User.activo' => 'Sim') | |
) | |
), | |
'scope' => array('User.activo' => 'Sim'), | |
'authorize' => 'Controller', | |
'allow' => array('index', 'view'), | |
'authError'=> "Não tem acesso à pagina.", | |
'authorize' =>array('Controller')) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment