I want to build a security measure like the RSA/Page Token, where the token is a 3 form parameter in the login. (username,password,token)
It's not clear to me what the role of the users controller's "login" action is. This this an "AfterFilter" for the Auth component?
Would this logic work?
// controllers/users_controller.php
login()
{
if(isbadtoken($this->data['User']['Token']))
$this-redirect('http://dev.null');
}
Should this logic go in the application controller like cookie logins and social network logins?