Guest User

AdminController

a guest
Apr 1st, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. public function login()
  2.            
  3.     {
  4.         if($this->request->is('post')){
  5.             debug($this->Auth->login());
  6.             if($this->Auth->login()){
  7.                 echo 'true';
  8.             } else {
  9.                 echo 'Usuário/Senha inválidos';
  10.             }
  11.         }
  12.         $this->autoRender = false;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment