Fix missing csrf tokens in category modals

This commit is contained in:
wrongecho
2026-03-23 16:36:15 +00:00
parent 22d33847c3
commit 619dd0d472
2 changed files with 2 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ $category_types_array = ['Expense', 'Income', 'Referral', 'Ticket'];
</button> </button>
</div> </div>
<form action="post.php" method="post" autocomplete="off"> <form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token'] ?>">
<div class="modal-body"> <div class="modal-body">

View File

@@ -21,6 +21,7 @@ ob_start();
</button> </button>
</div> </div>
<form action="post.php" method="post" autocomplete="off"> <form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token'] ?>">
<input type="hidden" name="category_id" value="<?php echo $category_id; ?>"> <input type="hidden" name="category_id" value="<?php echo $category_id; ?>">
<input type="hidden" name="type" value="<?php echo $category_type; ?>"> <input type="hidden" name="type" value="<?php echo $category_type; ?>">
<div class="modal-body"> <div class="modal-body">