Created
September 9, 2013 17:04
-
-
Save hugofabricio/6498532 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function login() | |
{ | |
// Ação de Login | |
if ($this->request->is('post')): | |
if ($this->Auth->login()): | |
$this->redirect($this->Auth->redirectUrl()); | |
else: | |
$this->Session->setFlash('Usuário ou senha inválidos, tente novamente.'); | |
endif; | |
endif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment