Redef the VerifySerializer

This commit is contained in:
Nico Schottelius 2018-11-18 13:25:15 +01:00
parent d0a3cdce52
commit 1b42652bd6

View file

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