mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
- Validate user email before sending welcome message
- Remove old code from edit_user - we now enforce admin role properly - Users may only edit their own profiles - enforced via session id rather than role - Rem ticket views deletion comment - ticket views are cleaned up daily via cron - Require CSRF Token when adding/removing 2FA and backing up master key
This commit is contained in:
@@ -22,7 +22,6 @@ $sql_recent_logs = mysqli_query($mysqli,"SELECT * FROM logs
|
||||
|
||||
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token'] ?>">
|
||||
<input type="hidden" name="user_id" value="<?php echo $session_user_id; ?>">
|
||||
<input type="hidden" name="existing_file_name" value="<?php echo $session_avatar; ?>">
|
||||
|
||||
<center class="mb-3 p-4">
|
||||
@@ -96,6 +95,7 @@ $sql_recent_logs = mysqli_query($mysqli,"SELECT * FROM logs
|
||||
<h3>2-Factor Authentication</h3>
|
||||
|
||||
<form class="p-3" action="post.php" method="post" autocomplete="off">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token'] ?>">
|
||||
|
||||
<?php if(empty($session_token)){ ?>
|
||||
<p>You have not setup 2FA, click on enable to setup 2FA.</p>
|
||||
|
||||
Reference in New Issue
Block a user