Force lowercase username, remove from session

This commit is contained in:
David Hoppenbrouwers
2022-10-08 15:42:04 +02:00
parent e9ef9140f0
commit 9acd5c0cdc
5 changed files with 26 additions and 12 deletions

View File

@@ -10,7 +10,7 @@
<a class=logo href="{{ url_for('index') }}">A</a>
<div style="margin:auto"></div>
{% if 'user_id' in session %}
<a href="{{ url_for('user_edit') }}">{{ session.get('username', '???') }}</a>
<a href="{{ url_for('user_edit') }}">User panel</a>
<span>|</span>
<a href="{{ url_for('logout') }}">Logout</a>
{% else %}