mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-17 11:51:29 +01:00
feature: csrf protection
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
<td>
|
||||
<form action="?subtopic=guilds&action=accept_invite&guild={{ guild_name }}&todo=save" method="post">
|
||||
{{ csrf() }}
|
||||
{% set i = 0 %}
|
||||
{% for player in invited_players %}
|
||||
<input type="radio" name="name" id="name_{{ i }}" value="{{ player }}" /><label for="name_{{ i }}">{{ player }}</label>
|
||||
@@ -24,9 +25,10 @@
|
||||
<tr>
|
||||
<td>
|
||||
<form action="{{ getLink('guilds') ~ '/' ~ guild_name }}" method="post">
|
||||
{{ csrf() }}
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user