芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Http/Middleware/CheckUserInactive.php
helper = new Common(); } public function handle($request, Closure $next) { // if user inactive wouldn't be able to login $user = $this->helper->getUserStatus(auth()->user()->status); if ($user == 'Inactive') { $prefix = str_replace('/', '', request()->route()->getPrefix()); if (str_contains($prefix, 'apiv2')) { return $this->unauthorizedResponse([], __("Inactive")); } auth()->logout(); $this->helper->one_time_message('danger', __('Your account is inactivated. Please try again later!')); return redirect('/login'); } return $next($request); } }