Skip to content

Commit

Permalink
Prepend model alias for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbarre committed Nov 1, 2014
1 parent 417c137 commit 2995d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Component/Auth/BaseAuthenticate.php
Expand Up @@ -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(
Expand Down

0 comments on commit 2995d93

Please sign in to comment.