Added CSRF protection to settings

This commit is contained in:
Miguel Nogueira 2020-08-31 18:34:09 +01:00
parent faa3a65e2b
commit 42de40e320
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@
<div class="card-body"> <div class="card-body">
<form name="settings" id="settings" method="post" action="{{route('saveSettings')}}"> <form name="settings" id="settings" method="post" action="{{route('saveSettings')}}">
@csrf
@foreach($options as $option) @foreach($options as $option)
<div class="form-group form-check"> <div class="form-group form-check">
<!-- Unchecked checkbox hack: This only works for serverside languages that process the last duplicate element, since the browser sends both the hidden and checkbox values. --> <!-- Unchecked checkbox hack: This only works for serverside languages that process the last duplicate element, since the browser sends both the hidden and checkbox values. -->