Commit aa4034eb by Jansa Jose

forgot pass

parent 83c89958
...@@ -416,10 +416,13 @@ class Webservice_model extends CI_Model{ ...@@ -416,10 +416,13 @@ 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);
if($ress == 'EmailSend'){
return true; return true;
} }
}
} else { } else {
// return "EmailNotExist"; // return "EmailNotExist";
return false; return false;
......
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