Not sure which part went wrong and tried to search through google for tutorial but no luck with the source out there. Basically whenever I try to submit the form, it check through chrome network and does the redirection to google.com even though the password is wrong. Anyone has clearer understand on cakephp auth to guide me through?
Here is what I did
AppController.php
public $components = array('DebugKit.Toolbar',
'Session',
'Auth');
UsersController.php
public function login()
{
if ($this->request->is('post'))
{
$this->request->data['User']['username'] = $_POST['email'];
$this->request->data['User']['password'] = $_POST['password'];
if ($this->Auth->login())
{
$this->redirect('http://www.google.com');
}
}
}