Commit 8acef71b authored by Jérome Perrin's avatar Jérome Perrin

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!...

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! google login wip
parent ce9d763e
Pipeline #34135 failed with stage
in 0 seconds
from Products.ERP5Type.Utils import str2bytes
portal = context.getPortalObject()
request = container.REQUEST
......@@ -23,7 +24,7 @@ elif code is not None:
redirect_uri="{}/ERP5Site_receiveGoogleCallback".format(portal.absolute_url()),
)
access_token = response_dict['access_token']
access_token = str2bytes(response_dict['access_token'])
hash_str = portal.Base_getHMAC(access_token, access_token)
portal.setAuthCookie(response, '__ac_google_hash', hash_str)
portal.Base_setBearerToken(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment