add CSRF validation

This commit is contained in:
Franzi 2021-12-21 16:57:39 +01:00
parent ae5a18138b
commit e32089c81e
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 21 additions and 1 deletions

View file

@ -2,6 +2,7 @@
{% block title %}self service{% endblock %}
{% block content %}
<form action="{{ url_for("selfservice") }}" method="post" class="row g-3 needs-validation">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<fieldset>
<legend>user data</legend>
@ -47,6 +48,7 @@
</form>
<form action="{{ url_for("selfservice") }}" method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<fieldset>
<legend>password</legend>