|
|
|
@ -45,8 +45,8 @@ class AuthController extends Controller
|
|
|
|
|
if ($usernameCheck & $passwordCheck) { |
|
|
|
|
$user = User::where([['username', $username],['password', md5($password)]])->first(); |
|
|
|
|
$checkExpiredOspro = $this->setExpiredTimeOspro($user['company_id']); |
|
|
|
|
if($checkExpiredOspro === false) { |
|
|
|
|
return response()->json(['status' => 'error', 'message' => 'Expired! Please update license!'], 201); |
|
|
|
|
if($checkExpiredOspro === false && $user['company_id'] != null) { |
|
|
|
|
return response()->json(['status' => 'error', 'message' => 'Expired! Please update license!','$checkExpiredOspro'=>$checkExpiredOspro], 201); |
|
|
|
|
} |
|
|
|
|
if ($is_mobile) { |
|
|
|
|
$fcm_token = $request->fcm_token; |
|
|
|
|