public function findAuth(Query $query, array $options = [])
{
$identifier = Hash::get($options, 'username');
if (empty($identifier)) {
throw new \BadMethodCallException(__d('CakeDC/Users', 'Missing \'username\' in options data'));
}
$query->orWhere([$this->aliasField('email') => $identifier])->find('active', $options);
return $query;
}