fix admin login

This commit is contained in:
Tokumeikoi 2020-02-16 13:55:48 +08:00
parent edf88cbccf
commit e49dc87fda

View File

@ -176,7 +176,7 @@ class AuthController extends Controller
public function check(Request $request)
{
$data = [
'data' => $request->session()->get('id') ? true : false
'is_login' => $request->session()->get('id') ? true : false
];
if ($request->session()->get('is_admin')) {
$data['is_admin'] = true;