mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Removing a method that is duplicated in AuthComponent.
This commit is contained in:
parent
9854947d0f
commit
3875d0ef54
1 changed files with 1 additions and 11 deletions
|
@ -49,16 +49,6 @@ abstract class BaseAuthenticate {
|
|||
$this->settings = Set::merge($this->settings, $settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hash the supplied password using the configured hashing method.
|
||||
*
|
||||
* @param string $password The password to hash.
|
||||
* @return string Hashed string
|
||||
*/
|
||||
public function hash($password) {
|
||||
return Security::hash($password, null, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Find a user record using the standard options.
|
||||
*
|
||||
|
@ -73,7 +63,7 @@ abstract class BaseAuthenticate {
|
|||
|
||||
$conditions = array(
|
||||
$model . '.' . $fields['username'] => $username,
|
||||
$model . '.' . $fields['password'] => $this->hash($password),
|
||||
$model . '.' . $fields['password'] => AuthComponent::password($password),
|
||||
);
|
||||
if (!empty($this->settings['scope'])) {
|
||||
$conditions = array_merge($conditions, $this->settings['scope']);
|
||||
|
|
Loading…
Add table
Reference in a new issue