def post(self, *args, **kwargs):
        # Generating a challenge doesn't require to validate the form.
        if 'challenge_device' in self.request.POST:
            return self.render_goto_step('token')

        return super(LoginView, self).post(*args, **kwargs)
Implement L{IStreamClientEndpoint.connect} to connect via TCP.
dataset/ETHPy150Open Bouke/django-two-factor-auth/two_factor/views/core.py/LoginView.post--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/endpoints.py/TCP4ClientEndpoint.connect