diff --git a/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php b/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php index 9c87cfa2abd..77629ee390d 100644 --- a/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php +++ b/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php @@ -109,7 +109,7 @@ protected function _findUser($username, $password = null) { $userFields = $this->settings['userFields']; if ($password !== null && $userFields !== null) { - $userFields[] = $fields['password']; + $userFields[] = $model . '.' . $fields['password']; } $result = ClassRegistry::init($userModel)->find('first', array(