mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix admin login
This commit is contained in:
parent
edf88cbccf
commit
e49dc87fda
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user