This commit is contained in:
Olusesan Ameye
2021-01-31 13:22:28 -05:00
parent 71915414c7
commit fbf04adb9a
18 changed files with 1442 additions and 317 deletions
@@ -14,12 +14,12 @@ class Register extends Web_Controller {
//#define MERMS_PROVIDERS_STARTPRACTICE 150005
// echo "xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ";
$data["practice_name"] = $this->input->post('practice_name');
$data["practice_name"] = $this->input->post('practice_name').rand(100,999);
$data["firstname"] = $this->input->post('firstname');
$data["lastname"] = $this->input->post('lastname');
$data["email"] = $this->input->post('email');
$data["password"] = $this->input->post('password');
$data["username"] = $this->input->post('username');
$data["username"] = $this->input->post('username').rand(100,999);
$data['action'] = MERMS_PROVIDERS_STARTPRACTICE;
@@ -28,9 +28,9 @@ class Register extends Web_Controller {
$res = $this->backend_model->mermsemr_api($data, $out);
$loginReturn = false;
if ( $res==PHP_LOGIN_OK && isset($out["practice_id"]) && $out["practice_id"] > 0 ){
// echo $res;
if ( $res==PHP_API_OK && isset($out["practice_pending_id"]) && $out["practice_pending_id"] > 0 ){
$data["loginReturn"] = true;
}
$this->renderExternalPage('register', $data);