fix: show login flashes and CSRF errors; proxy and cookie options for HTTPS deploys

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-05-12 15:53:12 +08:00
parent e3b9fca45d
commit a5e1e94fb2
4 changed files with 45 additions and 0 deletions
+5
View File
@@ -6,6 +6,11 @@
<h1>本地导航站</h1>
<form method="post" novalidate>
{{ form.hidden_tag() }}
{% if request.method == "POST" and form.csrf_token.errors %}
{% for e in form.csrf_token.errors %}
<div class="errors" role="alert">{{ e }}</div>
{% endfor %}
{% endif %}
<div class="form-row">
{{ form.username.label }}
{{ form.username(class="") }}