Browse Source

handle super admin

pull/1/head
wahyuun 10 months ago
parent
commit
5792ebc245
  1. 2
      app/Http/Controllers/AuthController.php

2
app/Http/Controllers/AuthController.php

@ -45,7 +45,7 @@ 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) {
if($checkExpiredOspro === false && $user['company_id'] != null) {
return response()->json(['status' => 'error', 'message' => 'Expired! Please update license!'], 201);
}
if ($is_mobile) {

Loading…
Cancel
Save