

def validate_second_factor(self):
    for device in self.user.totp_devices.all():
        if device.validate_token(self.cleaned_data['token']):
            self.last_used_at = timezone.now()
            device.save()
            return True
    self.add_error('token', self.INVALID_ERROR_MESSAGE)
    return False

dataset/ETHPy150Open gavinwahl/django-u2f/django_u2f/forms.py TOTPForm.validate_second_factor/VarMisuse@40/51 `device`->`self`