Commit ea23ac27 authored by LETORT Sebastien's avatar LETORT Sebastien

bug correction: bad syntax and wrong command.

parent b6809431
......@@ -43,7 +43,7 @@ def jwt_auth(request):
:param request:
o_log = new LoggerAdapter(log, {'prefix': "jwt_auth"})
o_log = LoggerAdapter(log, {'prefix': "jwt_auth"})
auth_header = request.META.get('HTTP_AUTHORIZATION', '')
if not auth_header:"Token request without http authorisation %s %s %s",
......@@ -57,8 +57,7 @@ def jwt_auth(request):
o_log.debug('username %s', username)
o_log.debug('password %s', password)
o_log.debug('runners : %s', Runner.objects.all())
user = Runner.objects.get(token=password)
o_log.debug('user : %s', user)
if username == "$token" and Runner.objects.get(token=password):"Token for runner called")
user = Runner.objects.get(token=password)
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