diff options
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html index 74ffb6b..cb9c238 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,10 +2,14 @@ {%- from '_macros.html' import render_field %} {%- block content %} <p>Willkommen bei <strong>spline accounts</strong>!</p> +{%- if session.username %} +<p>Hallo {{ session.username }}. <a href="{{ url_for('settings') }}">Einstellungen</a></p> +{%- else %} <p><a href="/register">Account erstellen</a></p> <form action="" method="post"> {{ render_field(form.username) }} {{ render_field(form.password) }} <input type="submit" value="Login" /> </form> +{%- endif %} {%- endblock %} |