def reset_password_token_status(self, token):
        """
        Returns the expired status, invalid status, and user of a password reset
        token. For example::

            expired, invalid, user, data = reset_password_token_status('...')

        :param token: The password reset token
        """
        expired, invalid, user, data = self.get_token_status(
            token, 'reset', 'SECURITY_RESET_PASSWORD_WITHIN', return_data=True)

        if (not invalid
                and user.password
                and not self.verify_hash(data[1], user.password)):
            invalid = True

        return expired, invalid, user
def reset_password_token_status ( self , token ) : expired , invalid , user , data = self . get_token_status ( token , 'reset' , 'SECURITY_RESET_PASSWORD_WITHIN' , return_data = True ) if ( not invalid and user . password and not self . verify_hash ( data [ 1 ] , user . password ) ) : invalid = True return expired , invalid , user
Returns the expired status, invalid status, and user of a password reset
        token. For example::

            expired, invalid, user, data = reset_password_token_status('...')

        :param token: The password reset token