mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Enable CSRF protection (#10447)
* Enable CSRF protection * fix style issues
This commit is contained in:
@@ -31,6 +31,7 @@ if (!LegacyAuth::user()->hasGlobalAdmin()) {
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<form role="form" class="remove_token_form">
|
||||
<?php echo csrf_field() ?>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
||||
<button type="submit" class="btn btn-danger danger" id="alert-rule-removal" data-target="alert-rule-removal">Delete</button>
|
||||
<input type="hidden" name="alert_id" id="alert_id" value="">
|
||||
|
Reference in New Issue
Block a user