This commit is contained in:
Nico Schottelius 2018-11-18 13:29:07 +01:00
parent 1b42652bd6
commit 0b73e1f5e0

View file

@ -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)