From 8f693e3446631bdb3670fc0de0d7ac135687e7cd Mon Sep 17 00:00:00 2001 From: Findeton Date: Fri, 28 Jun 2024 10:02:03 -0500 Subject: [PATCH] wip --- iam/api/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iam/api/decorators.py b/iam/api/decorators.py index 9eaebd8a..265385d9 100644 --- a/iam/api/decorators.py +++ b/iam/api/decorators.py @@ -39,7 +39,7 @@ def get_login_user(request, has_expiry_timestamp = True): hmac_token = HMACToken(key) user = User.objects.get(username=hmac_token.get_userid()) - if (hmac_token.self.expiry_timestamp != False) != has_expiry_timestamp: + if (hmac_token.expiry_timestamp != False) != has_expiry_timestamp: return None, dict(error_codename="invalid_token_type"), hmac_token # admin auth event has a different timeout