Test Husky pre-commit hook.

This commit is contained in:
RameshT 2024-08-05 13:06:41 +05:30
parent c90f3bbab1
commit 8771b7b19b
1 changed files with 0 additions and 6 deletions

View File

@ -15,18 +15,12 @@ class Form extends CI_Controller
} }
public function submit() public function submit()
{ {
if (!$this->session->userdata('logged_in')) { if (!$this->session->userdata('logged_in')) {
redirect('users/login'); redirect('users/login');
} }
$form_data = json_decode($this->input->raw_input_stream, true); $form_data = json_decode($this->input->raw_input_stream, true);
$this->load->model('Form_model'); $this->load->model('Form_model');
if ($this->Form_model->save_form($form_data)) { if ($this->Form_model->save_form($form_data)) {
$response = array('status' => 'success', 'message' => 'Form submitted successfully.'); $response = array('status' => 'success', 'message' => 'Form submitted successfully.');
} else { } else {