Changeset 765 for trunk/app/app_controller.php
- Timestamp:
- 09/11/08 15:04:23 (2 months ago)
- Files:
-
- 1 modified
-
trunk/app/app_controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/app_controller.php
r699 r765 20 20 public function beforeFilter() 21 21 { 22 //set locale 22 //set locale (es or en by now) 23 23 $this->__setLocale(); 24 24 25 // Auth stuff25 // Auth configuratin 26 26 $this->Auth->fields = array('username' => 'email', 'password' => 'pwd'); 27 27 $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); … … 49 49 { 50 50 $this->Session->setFlash($msg); // http://manual.cakephp.org/chapter/session 51 52 $this->redirect($to); 53 54 exit; 51 $this->redirect($to); 52 return true; 55 53 } 56 54
