summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html
index 1873dd3..1886d12 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -19,8 +19,8 @@
<h2>{{ title }}</h2>
{% endif %}
- {%- if session.username %}
- <p>Logged in as {{ session.username }}. <a href="{{ url_for('logout') }}">Log out</a></p>
+ {%- if g.user %}
+ <p>Logged in as {{ g.user.uid }}. <a href="{{ url_for('logout') }}">Log out</a></p>
{%- else %}
<p>Not logged in. <a href="{{ url_for('index') }}">Log in</a></p>
{%- endif %}