Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix logout csrf
  • Loading branch information
jekkos committed Jan 1, 2022
1 parent bb0e771 commit 9332d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/partial/header.php
Expand Up @@ -110,7 +110,7 @@
<div class="navbar-right" style="margin:0">
<?php echo anchor('home/change_password/'.$user_info->person_id, $user_info->first_name . ' ' . $user_info->last_name, array('class' => 'modal-dlg', 'data-btn-submit' => $this->lang->line('common_submit'), 'title' => $this->lang->line('employees_change_password'))); ?>
<?php echo ' | ' . ($this->input->get('debug') == 'true' ? $this->session->userdata('session_sha1') . ' | ' : ''); ?>
<?php echo anchor('home/logout', $this->lang->line('login_logout')); ?>
<a href="#" onclick="$.post('<?php echo site_url('home/logout'); ?>');"><?php echo $this->lang->line('login_logout');?></a>
</div>

<div class="navbar-center" style="text-align:center">
Expand Down

0 comments on commit 9332d16

Please sign in to comment.