add CSRF validation
This commit is contained in:
parent
ae5a18138b
commit
e32089c81e
5 changed files with 21 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
<td>{{ member["cn"] }}</td>
|
||||
<td>
|
||||
<form action="{{ url_for("group_edit", ou=ou) }}" method="post">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||
<input type="hidden" name="remove" value="{{ member["uid"] }}">
|
||||
<input type="submit" value="remove" class="btn btn-danger">
|
||||
</form>
|
||||
|
@ -25,6 +26,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<form action="{{ url_for("group_edit", ou=ou) }}" method="post" class="row g-3 needs-validation">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||
<fieldset>
|
||||
<legend>add user to group</legend>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{% extends "layout/default.html" %}
|
||||
{% block content %}
|
||||
<form action="{{ url_for("login") }}" method="post">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
<legend>Login</legend>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue