From 7a581e8357d2b39af6c0ee1c86582e19cbd6c089 Mon Sep 17 00:00:00 2001 From: William Colmenares Date: Mon, 11 Mar 2019 23:05:13 -0400 Subject: [PATCH] fix verify someone else token --- otpauth/serializer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/otpauth/serializer.py b/otpauth/serializer.py index 691e5a5..7aaaf51 100644 --- a/otpauth/serializer.py +++ b/otpauth/serializer.py @@ -34,11 +34,11 @@ class TokenSerializer(serializers.Serializer): auth_realm = self.validated_data.get(self.realm_name) # only 2 special realms can login - if not auth_realm in ["ungleich-admin", "ungleich-auth" ]: - logger.error("Auth-realm is neither ungleich-admin " - "nor ungleich-auth".format() - ) - raise exceptions.AuthenticationFailed() + # if not auth_realm in ["ungleich-admin", "ungleich-auth" ]: + # logger.error("Auth-realm is neither ungleich-admin " + # "nor ungleich-auth".format() + # ) + # raise exceptions.AuthenticationFailed() logger.debug("auth: [{}]{}@'{}' {} + {})".format( self.name_name, auth_name, auth_realm,