Removing a method that is duplicated in AuthComponent.

This commit is contained in:
mark_story 2011-02-03 23:00:41 -05:00
parent 9854947d0f
commit 3875d0ef54

View file

@ -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']);