X-Git-Url: http://nitlanguage.org diff --git a/lib/popcorn/pop_auth.nit b/lib/popcorn/pop_auth.nit index 8039ba9..285d032 100644 --- a/lib/popcorn/pop_auth.nit +++ b/lib/popcorn/pop_auth.nit @@ -77,6 +77,7 @@ # ~~~ module pop_auth +import pop_json import pop_sessions import github @@ -196,12 +197,9 @@ class GithubOAuthCallBack return end - # FIXME reinit curl before next request to avoid weird 404 - curl = new Curl - # Load github user var gh_api = new GithubAPI(access_token) - var user = gh_api.load_auth_user + var user = gh_api.get_auth_user if user == null then res.error 401 return