From f4c03a9065aff4d5769839c66a7cd010368d7933 Mon Sep 17 00:00:00 2001 From: Caspar von Wrede Date: Mon, 6 Mar 2023 21:06:06 +0100 Subject: [PATCH] Fix broken code --- sso.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sso.py b/sso.py index d5526b7..e905850 100644 --- a/sso.py +++ b/sso.py @@ -7,7 +7,7 @@ def hyvorTalkSignon(user): userData = base64.b64encode(json.dumps(user).encode()).decode() - hash = hmac.new(HYVOR_TALK_SSO_PRIVATE_KEY, userData.encode(), sha1).hexdigest().rstrip("\n") + hash = hmac.new(HYVOR_TALK_SSO_PRIVATE_KEY, userData.encode(), digestmod="sha1").hexdigest().rstrip("\n") return { 'hash': hash, @@ -43,4 +43,4 @@ def hyvorTalkSignon(user): """ % { 'hash': signon['hash'], 'userData': signon['userData'], -} \ No newline at end of file +}