use mobiledevice as login object for mobile api
This commit is contained in:
@@ -119,15 +119,4 @@ class MobileDeviceManager extends BaseObject
|
||||
|
||||
}
|
||||
|
||||
public function isMobileDeviceActivatedByIdCard($idCard){
|
||||
if ( !isset($idCard)){
|
||||
return false;
|
||||
}
|
||||
$device = MobileDevice::find()->andWhere(['id_card' => $idCard])->one();
|
||||
if ( !isset($device)){
|
||||
return false;
|
||||
}
|
||||
return isset($device->activated_at);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user