mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
if the encryption_key is still the flossie thing you can't use the impersonate for security reasons
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user