mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 04:58:16 -06:00
Correct "'return' outside function"
This commit is contained in:
parent
d1de741695
commit
3be0fc4c36
@ -29,7 +29,7 @@ class TokenAuthentication(authentication.TokenAuthentication):
|
||||
if not token.validate_client_ip(clientip):
|
||||
raise exceptions.AuthenticationFailed(f"Source IP {clientip} is not allowed to use this token.")
|
||||
|
||||
return authenticationresult
|
||||
return authenticationresult
|
||||
|
||||
def authenticate_credentials(self, key):
|
||||
model = self.get_model()
|
||||
|
Loading…
Reference in New Issue
Block a user