mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Prepend model alias for safety
This commit is contained in:
parent
417c137d11
commit
2995d9319c
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue