public function login($username, $password, $remember = FALSE)
{
if (empty($password)) {
return FALSE;
}
if (is_string($password)) {
// Get the salt from the stored password
$salt = $this->find_salt($this->password($username));
// Create a hashed password using the salt from the stored password
$password = $this->hash_password($password, $salt);
}
return $this->_login($username, $password, $remember);
}