From 1b42652bd670521c4781836f5ee7d90bfcf221aa Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 18 Nov 2018 13:25:15 +0100 Subject: [PATCH] Redef the VerifySerializer --- ungleichotp/otpauth/serializer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ungleichotp/otpauth/serializer.py b/ungleichotp/otpauth/serializer.py index 0a9cbbd..b68f4be 100644 --- a/ungleichotp/otpauth/serializer.py +++ b/ungleichotp/otpauth/serializer.py @@ -74,9 +74,9 @@ class TokenSerializer(serializers.Serializer): realm_name = 'realm' def save(self): - token_in = self.validated_data.get('token') - name_in = self.validated_data.get('name') - realm_in = self.validated_data.get('realm') + token_in = self.validated_data.get(self.token_name) + name_in = self.validated_data.get(self.name_name) + realm_in = self.validated_data.get(self.realm_name) # 1. Verify that the connection might authenticate try: