diff --git a/cake/libs/controller/components/auth/base_authenticate.php b/cake/libs/controller/components/auth/base_authenticate.php index 0753640f8..d34789729 100644 --- a/cake/libs/controller/components/auth/base_authenticate.php +++ b/cake/libs/controller/components/auth/base_authenticate.php @@ -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']);