public function validateToken($token)
    {
        // The token must match of course.
        if ($this->Token != $token) {
            return false;
        }

        // Has the token expired?
        if (strtotime($this->TokenExpiry) < time()) {
            return false;
        }

        $hashProvider = HashProvider::getProvider();
        return $hashProvider->compareHash($this->getSavedPasswordTokenData(), $token);
    }
public function validateToken($token)
    {
        // The token must match of course.
        if ($this->Token != $token) {
            return false;
        }

        // Has the token expired?
        if (strtotime($this->TokenExpiry) < time()) {
            return false;
        }

        $hashProvider = HashProvider::getProvider();
        return $hashProvider->compareHash($this->getSavedPasswordTokenData(), $token);
    }
public function validateToken ( $ token ) { // The token must match of course. if ( $ this -> Token != $ token ) { return false ; } // Has the token expired? if ( strtotime ( $ this -> TokenExpiry ) < time ( ) ) { return false ; } $ hashProvider = HashProvider :: getProvider ( ) ; return $ hashProvider -> compareHash ( $ this -> getSavedPasswordTokenData ( ) , $ token ) ; }
Checks that the token supplied is valid for this user.

@param $token
@return bool
Checks that the token supplied is valid for this user .