Commit 815380d3 by Dixon Joseph

fixes

parent bb2f9664
...@@ -1297,8 +1297,8 @@ public function saveProfile() ...@@ -1297,8 +1297,8 @@ public function saveProfile()
/*encryption*/ /*encryption*/
//$update_data['name'] = $this->encrypt->encode($update_data['name']); //$update_data['name'] = $this->encrypt->encode($update_data['name']);
$update_data['rg'] = $this->encrypt->encode($update_data['rg']); $update_data['rg'] = $this->encrypt->encode($update_data['rg']);
$update_data['cpf'] = $this->encrypt->encode($update_data['cpf']); //$update_data['cpf'] = $this->encrypt->encode($update_data['cpf']);
$update_data['telephone'] = $this->encrypt->encode($update_data['telephone']); //$update_data['telephone'] = $this->encrypt->encode($update_data['telephone']);
$update_data['gender'] = $this->encrypt->encode($update_data['gender']); $update_data['gender'] = $this->encrypt->encode($update_data['gender']);
$update_data['cep'] = $this->encrypt->encode($update_data['cep']); $update_data['cep'] = $this->encrypt->encode($update_data['cep']);
$update_data['street_address'] = $this->encrypt->encode($update_data['street_address']); $update_data['street_address'] = $this->encrypt->encode($update_data['street_address']);
......
...@@ -589,8 +589,7 @@ ...@@ -589,8 +589,7 @@
$key = $this->config->item('encryption_key'); $key = $this->config->item('encryption_key');
$this->db->query("update tbl_registration set dob = AES_ENCRYPT(".$data['dob'].",'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA')where id = ".$insertid); $this->db->query("Update tbl_doctors SET dob = AES_ENCRYPT(".$data['dob'].",".$key."), name = AES_ENCRYPT('".$data['name']."',".$key.") where id=".$insertid);
//$this->db->query("Update tbl_doctors SET dob = AES_ENCRYPT(".$data['dob'].",".$key."), name = AES_ENCRYPT('".$data['name']."',".$key.") where id=".$insertid);
$this->db->insert('tbl_clinic_doctors',array('doctor_id'=>$insertid,'clinic_id'=> 0)); $this->db->insert('tbl_clinic_doctors',array('doctor_id'=>$insertid,'clinic_id'=> 0));
$this->db->insert('tbl_consultation',array('doctor_id'=>$insertid,'clinic_id'=> 0,'date'=>'""','date_secondary'=>'""','active_schedule'=> 0)); $this->db->insert('tbl_consultation',array('doctor_id'=>$insertid,'clinic_id'=> 0,'date'=>'""','date_secondary'=>'""','active_schedule'=> 0));
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="col-md-6"> <div class="col-md-6">
<p class="ip_row_p">CPF</p> <p class="ip_row_p">CPF</p>
<div class="ip_bank_detail_frame"> <div class="ip_bank_detail_frame">
<input class="ip_bank_input" name="cpf" placeholder="" data-parsley-required="true" data-parsley-minlength="11" data-parsley-cpf="" onKeyPress="if(this.value.length > 10) return false;" type="number" value="<?php echo $this->encrypt->decode($doctor_data['dr_cpf']);?>"> <input class="ip_bank_input" name="cpf" placeholder="" data-parsley-required="true" data-parsley-minlength="11" data-parsley-cpf="" onKeyPress="if(this.value.length > 10) return false;" type="number" value="<?php echo $doctor_data['dr_cpf'];?>">
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment