Autoregister on comment

This commit is contained in:
David Hoppenbrouwers
2022-10-15 22:35:47 +02:00
parent 17844fa11c
commit eafa141a2f
5 changed files with 82 additions and 30 deletions

View File

@@ -34,7 +34,11 @@
<main>
<h1>{{ title }}</h1>
{%- for category, msg in get_flashed_messages(True) -%}
<p class="flash {{ category }}">{{ msg }}</p>
{#-
FIXME ensure all flash() messages are free of XSS vectors.
In particular, check places where we flash error messages.
-#}
<p class="flash {{ category }}">{{ msg | safe }}</p>
{%- endfor -%}
{%- block content %}{% endblock -%}
</main>