mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 11:09:11 +08:00
fix admin login
This commit is contained in:
parent
ace06630d8
commit
19940f599d
@ -175,9 +175,13 @@ class AuthController extends Controller
|
|||||||
|
|
||||||
public function check(Request $request)
|
public function check(Request $request)
|
||||||
{
|
{
|
||||||
return response([
|
$response = [
|
||||||
'data' => $request->session()->get('id') ? true : false
|
'data' => $request->session()->get('id') ? true : false
|
||||||
]);
|
];
|
||||||
|
if ($request->session()->get('is_admin')) {
|
||||||
|
$response['is_admin'] = true;
|
||||||
|
}
|
||||||
|
return response($response);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function forget(AuthForget $request)
|
public function forget(AuthForget $request)
|
||||||
|
Loading…
Reference in New Issue
Block a user