From 0b73e1f5e0f024e0d06eb1408000a9d50d82e9f3 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 18 Nov 2018 13:29:07 +0100 Subject: [PATCH] Debug++ --- ungleichotp/otpauth/serializer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ungleichotp/otpauth/serializer.py b/ungleichotp/otpauth/serializer.py index b68f4be..c85bd04 100644 --- a/ungleichotp/otpauth/serializer.py +++ b/ungleichotp/otpauth/serializer.py @@ -78,6 +78,8 @@ class TokenSerializer(serializers.Serializer): name_in = self.validated_data.get(self.name_name) realm_in = self.validated_data.get(self.realm_name) + print("auth: {} {} {}".format(token_in, name_in, realm_in)) + # 1. Verify that the connection might authenticate try: db_instance = otpauth.models.OTPSeed.objects.get(name=name_in, realm=realm_in)