Add feature user can change mail address

This commit is contained in:
2026-09-01 08:39:30 +03:00
parent f2ff00894e
commit 2dc4dedb2b
4 changed files with 42 additions and 2 deletions
+1
View File
@@ -21,6 +21,7 @@
{% if current_user %}
<a href="{{ url_for('write') }}">Write</a>
{% if current_user.role == 'admin' %}<a href="{{ url_for('admin_users') }}">Accounts</a>{% endif %}
<a href="{{ url_for('change_email') }}">Email</a>
<a href="{{ url_for('change_password') }}">Password</a>
<span class="user-chip">{{ current_user.username }}</span>
<form action="{{ url_for('logout') }}" method="post"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><button class="text-button" type="submit">Log out</button></form>