Commit e0080626 by Jansa Jose

change in userlogin

parent fa725722
......@@ -47,7 +47,7 @@ class Webservice_model extends CI_Model {
$respArr['message'] = "Invalid Email Address";
return $respArr;
}
$result = $this->db->get_where('users AS USR',array('USR.username'=>$userLogData['user_email'], 'USR.status'=>'1','USR.user_type'=>'1','USR.password'=>$userLogData['user_password']));
$result = $this->db->get_where('users AS USR',array('USR.username'=>$userLogData['user_email'], 'USR.status'=>'1','USR.user_type'=>$userLogData['user_type'],'USR.password'=>$userLogData['user_password']));
$respArr['message'] = "Invalid Password";
if(!empty($result) && $result->num_rows() == 1 && !empty($custData = $result->row())){
$respArr['data'] = $custData;
......
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