fix(admin): verify CSRF token in player-management admin Mods [#139] (#256)

This commit is contained in:
Ferywir
2026-06-23 05:54:03 +02:00
committed by GitHub
parent 6888a09b5f
commit e49069a9c6
17 changed files with 55 additions and 0 deletions
+2
View File
@@ -84,6 +84,7 @@ select.dropdown { width:100%; }
<!-- USERNAME EDIT - NOU -->
<div class="username-row">
<form action="../GameEngine/Admin/Mods/editUsername.php" method="POST">
<?php echo csrf_field(); ?>
<input type="hidden" name="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" value="<?php echo $uid; ?>">
<div class="form-row">
@@ -96,6 +97,7 @@ select.dropdown { width:100%; }
<!-- RESTUL FORMULUI PRINCIPAL -->
<form action="../GameEngine/Admin/Mods/editUser.php" method="POST">
<?php echo csrf_field(); ?>
<input type="hidden" name="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
<input type="hidden" name="id" value="<?php echo $id; ?>" />