mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update
This commit is contained in:
parent
c373becd78
commit
2ae0600431
@ -27,11 +27,8 @@ class LoginController extends Controller
|
||||
$request->session()->put('is_admin', true);
|
||||
}
|
||||
$res = [
|
||||
'data' => true
|
||||
'data' => $user->is_admin ? 2 : 1
|
||||
];
|
||||
if ($user->is_admin) {
|
||||
$res['is_admin'] = true;
|
||||
}
|
||||
return response($res);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user