mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update
This commit is contained in:
parent
2c4400e3f9
commit
e7618018f6
@ -26,9 +26,11 @@ class LoginController extends Controller
|
||||
if ($user->is_admin) {
|
||||
$request->session()->put('is_admin', true);
|
||||
}
|
||||
$res = [
|
||||
'data' => $user->is_admin ? 2 : 1
|
||||
];
|
||||
return response($res);
|
||||
return response([
|
||||
'data' => [
|
||||
'is_admin' => $user->is_admin ? 2 : 1,
|
||||
'token' => $user->token
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
2
public/umi.js
vendored
2
public/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user