Correct "'return' outside function"

This commit is contained in:
Pieter Lambrecht 2022-03-18 16:00:39 +01:00
parent d1de741695
commit 3be0fc4c36

View File

@ -29,7 +29,7 @@ class TokenAuthentication(authentication.TokenAuthentication):
if not token.validate_client_ip(clientip): if not token.validate_client_ip(clientip):
raise exceptions.AuthenticationFailed(f"Source IP {clientip} is not allowed to use this token.") raise exceptions.AuthenticationFailed(f"Source IP {clientip} is not allowed to use this token.")
return authenticationresult return authenticationresult
def authenticate_credentials(self, key): def authenticate_credentials(self, key):
model = self.get_model() model = self.get_model()