From 2abc16283f3b06aec8afa42b216a0063acb702f8 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 23 Jan 2008 13:45:56 +0100 Subject: [PATCH] * Show the currently logged in user and a logout link on the login page. --- templates/base/login.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/base/login.html b/templates/base/login.html index 834dac4..07bfd33 100644 --- a/templates/base/login.html +++ b/templates/base/login.html @@ -6,6 +6,11 @@

Your username and password didn't match. Please try again.

{% endif %} +{% if user.is_authenticated %} +

You are currently logged in as {{ user.username }}

+

Logout

+{% endif %} +
@@ -14,6 +19,7 @@ + {% endblock %} -- 2.30.2
{{ form.username }}