Prepend model alias for safety

This commit is contained in:
Sebastien Barre 2014-11-01 09:36:59 -04:00
parent 417c137d11
commit 2995d9319c

View file

@ -109,7 +109,7 @@ abstract class BaseAuthenticate {
$userFields = $this->settings['userFields'];
if ($password !== null && $userFields !== null) {
$userFields[] = $fields['password'];
$userFields[] = $model . '.' . $fields['password'];
}
$result = ClassRegistry::init($userModel)->find('first', array(