Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->loadComponent('Auth', [
- 'authenticate' => [
- 'Form' => [
- 'userModel' => 'Gestionnaires',
- 'fields' => ['username' => 'email', 'password' => 'password']
- ]
- ],
- 'loginAction' => [
- 'controller' => 'etudes',
- 'action' => 'index'
- ],
- 'loginRedirect' => [
- 'controller' => 'etudes',
- 'action' => 'index'
- ],
- 'logoutRedirect' => [
- 'controller' => 'gestionnaires',
- 'action' => 'login'
- ]
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement