aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2020-12-18 17:05:55 -0600
committerzsloan2020-12-18 17:05:55 -0600
commit69f92ef2bc10477a80eff96fb7cc83fee11f31e8 (patch)
tree134a8f8eb197aeabeb7477e3312948b5ab5da861 /wqflask
parent77a9d1710b2c06c968bfea2ad421678430e40df3 (diff)
downloadgenenetwork2-69f92ef2bc10477a80eff96fb7cc83fee11f31e8.tar.gz
This should fix the Github login error
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/user_login.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/user_login.py b/wqflask/wqflask/user_login.py
index f25ebc32..b6266b2a 100644
--- a/wqflask/wqflask/user_login.py
+++ b/wqflask/wqflask/user_login.py
@@ -239,7 +239,7 @@ def github_oauth2():
}
result = requests.post("https://github.com/login/oauth/access_token", json=data)
- result_dict = {arr[0]:arr[1] for arr in [tok.split("=") for tok in [token.encode("utf-8") for token in result.text.split("&")]]}
+ result_dict = {arr[0]:arr[1] for arr in [tok.split("=") for tok in result.text.split("&")]}
github_user = get_github_user_details(result_dict["access_token"])