From 8771b7b19b575d4c677bd324f9ce40a486e0288d Mon Sep 17 00:00:00 2001 From: RameshT Date: Mon, 5 Aug 2024 13:06:41 +0530 Subject: [PATCH] Test Husky pre-commit hook. --- application/controllers/Form.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/application/controllers/Form.php b/application/controllers/Form.php index 9cc8f94..d6007bf 100644 --- a/application/controllers/Form.php +++ b/application/controllers/Form.php @@ -15,18 +15,12 @@ class Form extends CI_Controller } public function submit() { - - - if (!$this->session->userdata('logged_in')) { redirect('users/login'); } - $form_data = json_decode($this->input->raw_input_stream, true); $this->load->model('Form_model'); - - if ($this->Form_model->save_form($form_data)) { $response = array('status' => 'success', 'message' => 'Form submitted successfully.'); } else {