Commit aa4034eb by Jansa Jose

forgot pass

parent 83c89958
...@@ -416,8 +416,11 @@ class Webservice_model extends CI_Model{ ...@@ -416,8 +416,11 @@ class Webservice_model extends CI_Model{
$query = $this->db->update('users', $password); $query = $this->db->update('users', $password);
if ($query) { if ($query) {
$data->name = $username; $data->name = $username;
$this->forgot_mails($data,$rand_pwd); $ress = $this->forgot_mails($data,$rand_pwd);
return true; if($ress == 'EmailSend'){
return true;
}
} }
} else { } else {
......
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