Commit 86092459 authored by sebastien letort's avatar sebastien letort

Bug fix. A new user was created, now we really get the one we look for.

parent c0845fb2
......@@ -24,7 +24,7 @@ def jupyter(request):
token = Token("jupyter")
user = request.user.get_username()
token.claim['upn'] = user
token.claim['atk'] = AllgoUser(request.user).token
token.claim['atk'] = AllgoUser.objects.get(user_id=request.user.id).token
log.info("Jupyter token %s %s", user, token.claim['atk'])
encoded_token = token.encode_token()
next = "/user/%s/git-pull?" % user + urlencode({'repo': request.GET.get("repo")})
......
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