login changes
This commit is contained in:
parent
e29541ec74
commit
c6579d6b2c
@ -22,7 +22,7 @@ class Login_model extends CI_Model
|
||||
|
||||
public function login($mobile = null, $password = null, $accessFrom = null)
|
||||
{
|
||||
$this->db->select('t1.MobileNumber, t1.Password,t1.ListCode,t1.UpdatedOn,t1.OTP');
|
||||
$this->db->select('t1.MobileNumber, t1.Password,t1.ListCode,t1.UpdatedOn,t1.OTP,t1.StaffID');
|
||||
$this->db->from('' . LOGIN . ' as t1');
|
||||
$this->db->where('t1.MobileNumber', $mobile);
|
||||
$this->db->or_where('t1.StaffID', $mobile);
|
||||
@ -123,7 +123,7 @@ class Login_model extends CI_Model
|
||||
}
|
||||
|
||||
}else{
|
||||
if ($mobile == $loginDetails->MobileNumber || $mobile == $loginDetails->StaffID) {
|
||||
if ($mobile == $loginDetails->MobileNumber || strtoupper($mobile) == strtoupper($loginDetails->StaffID)) {
|
||||
|
||||
if ($password == $loginDetails->Password) {
|
||||
if($loginDetails->ListCode == SUPER_ADMIN){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user