mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-19 12:13:25 +02:00
CSRF Protection (#235)
* Fix alert class name * feature: csrf protection * Cosmetics * Fix token generate * Admin Panel: changelogs csrf protection * news/id route * Refactor admin newses + add csrf * Use admin.links instead * Admin panel: Pages csrf * Menus: better csrf + add success message on reset colors * Plugins csrf * Move definitions * add info function, same as note($message) * Update mailer.php * Fix new page/news links * clear_cache & maintenance csrf * Formatting * Fix news type * Fix changelog link * Add new changelog link * More info to confirm dialog * This is always true
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<form action="?subtopic=guilds&action=create&todo=save" method="post">
|
||||
{{ csrf() }}
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="4">
|
||||
<tr>
|
||||
<td bgcolor="{{ config.vdarkborder }}" class="white"><B>Create a {{ config.lua.serverName }} Guild</b></td>
|
||||
@@ -47,6 +48,7 @@
|
||||
</td>
|
||||
<td align="center">
|
||||
<form action="?subtopic=guilds" method="post">
|
||||
{{ csrf() }}
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</form>
|
||||
</td>
|
||||
@@ -54,4 +56,4 @@
|
||||
<img src="{{ template_path }}/images/general/blank.gif" width="120" height="1" border="0"><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user