Skip to content
Snippets Groups Projects
Commit 21ba1972 authored by Jubi Dition's avatar Jubi Dition
Browse files

all sleeps to 1sec

parent beaac2c6
Branches 39-remove-old-everfi-metadata
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class Admin extends CI_Controller
public function add_user()
{
sleep(2);
sleep(1);
$this->load->library('form_validation');
$this->form_validation->set_rules('email', 'Email', 'required|max_length[40]|valid_email');
$this->form_validation->set_rules('pwd', 'Password', 'required|max_length[20]|alpha_numeric');
......@@ -59,7 +59,7 @@ class Admin extends CI_Controller
public function delete_user()
{
sleep(2);
sleep(1);
$this->load->library('form_validation');
$this->form_validation->set_rules('email', 'Email', 'required|max_length[40]|valid_email');
......@@ -90,7 +90,7 @@ class Admin extends CI_Controller
public function edit_user()
{
sleep(2);
sleep(1);
$this->load->library('form_validation');
$this->form_validation->set_rules('email', 'Email', 'required|max_length[40]|valid_email');
$this->form_validation->set_rules('pwd', 'Password', 'required|max_length[20]|alpha_numeric');
......@@ -113,7 +113,7 @@ class Admin extends CI_Controller
public function change_password()
{
sleep(2);
sleep(1);
$this->load->library('form_validation');
$this->form_validation->set_rules('curpwd', 'Current Password', 'required|max_length[20]|alpha_numeric');
$this->form_validation->set_rules('newpwd', 'New Password', 'required|max_length[20]|alpha_numeric');
......
......@@ -27,7 +27,7 @@ class Site extends CI_Controller
public function add_contact()
{
sleep(2);
sleep(1);
$this->load->library('form_validation');
$this->form_validation->set_rules('name', 'Name', 'required|max_length[40]|callback_alpha_dash_space');
$this->form_validation->set_rules('email', 'Email', 'required|max_length[40]|valid_email');
......@@ -61,7 +61,7 @@ class Site extends CI_Controller
public function delete_contact()
{
sleep(2);
sleep(1);
$this->load->library('form_validation');
$this->form_validation->set_rules('name', 'Name', 'required|max_length[40]|callback_alpha_dash_space');
......@@ -100,7 +100,7 @@ class Site extends CI_Controller
public function edit_contact()
{
sleep(2);
sleep(1);
$this->load->library('form_validation');
$this->form_validation->set_rules('name', 'Name', 'required|max_length[40]|callback_alpha_dash_space');
$this->form_validation->set_rules('email', 'Email', 'required|max_length[40]|valid_email');
......@@ -150,7 +150,7 @@ class Site extends CI_Controller
public function change_password()
{
sleep(2);
sleep(1);
$this->load->library('form_validation');
$this->form_validation->set_rules('curpwd', 'Current Password', 'required|max_length[20]|alpha_numeric');
$this->form_validation->set_rules('newpwd', 'New Password', 'required|max_length[20]|alpha_numeric');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment