Show
Ignore:
Timestamp:
07/24/08 16:00:36 (4 months ago)
Author:
aarkerio
Message:

Update testt

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/app_controller.php

    r587 r675  
    2020 public function beforeFilter() 
    2121 { 
    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(); 
    2924 
    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('*'); 
    3233 } 
    3334