if the encryption_key is still the flossie thing you can't use the impersonate for security reasons

This commit is contained in:
HB9HIL
2024-08-16 11:24:07 +02:00
parent ee05431223
commit e69c551857

View File

@@ -1165,6 +1165,11 @@ class User extends CI_Controller {
public function impersonate($hash) {
if ($this->config->item('encryption_key') == 'flossie1234555541') {
$this->session->set_flashdata('error', __("You currently can't impersonate another user. Please change the encryption_key in the config file first!"));
redirect('dashboard');
}
// Load the user model
$this->load->model('user_model');