summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2017-10-11 10:58:33 +0200
committerPiotr Dobrowolski <admin@tastycode.pl>2017-10-11 10:58:33 +0200
commit145d13c2a7b331af6eaa9618aa1e49c7c432dfbb (patch)
tree608f414f01e98bd80b643f8e0045440fb82e1772 /templates
parent007b880dc5dd27fd1d53c3429541120c8c3b682c (diff)
downloadcheckinator-145d13c2a7b331af6eaa9618aa1e49c7c432dfbb.tar.gz
checkinator-145d13c2a7b331af6eaa9618aa1e49c7c432dfbb.tar.bz2
checkinator-145d13c2a7b331af6eaa9618aa1e49c7c432dfbb.tar.xz
checkinator-145d13c2a7b331af6eaa9618aa1e49c7c432dfbb.zip
SSO support, add requirements.txt
Diffstat (limited to 'templates')
-rw-r--r--templates/basic.html8
-rw-r--r--templates/claim.html2
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/basic.html b/templates/basic.html
index 09e954f..4f27050 100644
--- a/templates/basic.html
+++ b/templates/basic.html
@@ -9,12 +9,12 @@
<body>
{% block body %}
<div class="login">
- {% if session.login %}
- logged in as {{ session.login }} |
+ {% if current_user.is_authenticated %}
+ logged in as {{ current_user.id }} |
<a href="account">account</a> |
- <a href="logout">log out</a>
+ <a href="{{ url_for('spaceauth.logout') }}">log out</a>
{% else %}
- <a href="login">login</a>
+ <a href="{{ url_for('spaceauth.login') }}">login</a>
{% endif %}
</div>
{% block content %}
diff --git a/templates/claim.html b/templates/claim.html
index 413b7bc..05f2e0b 100644
--- a/templates/claim.html
+++ b/templates/claim.html
@@ -4,7 +4,7 @@
{% if not hwaddr %}
<p class="error">Unknown MAC. Are you sure you're in the hackerspace?</p>
{% else %}
- You are about to claim <strong>{{ hwaddr }}</strong> as <strong>{{ session.login }}</strong>. Do you wish to continue?
+ You are about to claim <strong>{{ hwaddr }}</strong> as <strong>{{ current_user.id }}</strong>. Do you wish to continue?
<table>
<form action="" method="post">
<label><tr>