| 22 | | $this->Auth->fields = array('username' => 'email', 'password' => 'pwd'); |
| 23 | | $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); |
| 24 | | $this->Auth->loginRedirect = array('controller' => 'news', 'action' => 'display'); |
| 25 | | $this->Auth->logoutRedirect = array('controller' => 'news', 'action' => 'display'); |
| 26 | | $this->Auth->loginError = 'Invalid e-mail / password combination. Please try again'; |
| 27 | | $this->Auth->authorize = 'controller'; |
| 28 | | $this->Auth->deny('*'); |
| | 22 | //set locale |
| | 23 | $this->__setLocale(); |
| 30 | | //set locale |
| 31 | | $this->__setLocale(); |
| | 25 | // Auth stuff |
| | 26 | $this->Auth->fields = array('username' => 'email', 'password' => 'pwd'); |
| | 27 | $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); |
| | 28 | $this->Auth->loginRedirect = array('controller' => 'news', 'action' => 'display'); |
| | 29 | $this->Auth->logoutRedirect = array('controller' => 'news', 'action' => 'display'); |
| | 30 | $this->Auth->loginError = __('wrong_pass_or_email', true); |
| | 31 | $this->Auth->authorize = 'controller'; |
| | 32 | $this->Auth->deny('*'); |