mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update api
This commit is contained in:
parent
e14489cf66
commit
c82acafdf8
@ -16,7 +16,7 @@ class User
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if ($request->input('access_token')) {
|
||||
$user = \App\Models\User::where('token', $request->input('token'))->first();
|
||||
$user = \App\Models\User::where('token', $request->input('access_token'))->first();
|
||||
if ($user) {
|
||||
$request->session()->put('email', $user->email);
|
||||
$request->session()->put('id', $user->id);
|
||||
|
Loading…
Reference in New Issue
Block a user