Browse Source

Added request header debug info for ISB

pull/160/head
Mike Olund 8 years ago
parent
commit
8232d2c15f
2 changed files with 18 additions and 0 deletions
  1. +14
    -0
      edivorce/apps/core/templates/localdev/debug.html
  2. +4
    -0
      edivorce/apps/core/views/main.py

+ 14
- 0
edivorce/apps/core/templates/localdev/debug.html View File

@ -0,0 +1,14 @@
<html>
<head>
<title>Debug</title>
</head>
<body>
{% for k, v in request.META.items %}
{{ k }} = {{ v }}<br/>
{% endfor %}
</body>
</html>

+ 4
- 0
edivorce/apps/core/views/main.py View File

@ -27,6 +27,10 @@ def login(request):
return redirect(settings.FORCE_SCRIPT_NAME[:-1] + '/bceid')
else:
guid = request.bceid_user.guid
if guid == None:
return render(request, 'localdev/debug.html')
user, created = BceidUser.objects.get_or_create(user_guid=guid)
user.last_login = timezone.now()


Loading…
Cancel
Save