Auth finder authentication using multiple field

I have to authenticate user using either email or mobile and password.
There is no username field in the schema.
Input fields are

$this->Form->input('access_key');
$this->Form->input('password');

where access_key can be either email or mobile

Looks like you need something like this? Not sure what your question is exactly…

Exactly same I need. But according to Gaurav’s concern, he has added username column in table although it is not required and will always be blank. Same is the case with me, I don’t want to add username column when it is of no use