In my AppController:
public $components = array('Auth' => array(
'authenticate' => array('Blowfish')
),
In my UsersController:
public function login() {
if($this->request->isPost()) {
$this->autoRender = false;
if($this->Auth->login()) {
$this->response->statusCode(200);
}
else {
$this->response->statusCode(401);
}
}
}
And whatever data are POSTed to /users/login the reponse is always 200 and user is logged in. How I can force Auth not to login but check username and password in db?
Auth->allow()in your before filter for example? - Borislav Sabev