mirror of
https://github.com/v2board/v2board.git
synced 2025-02-04 12:39:12 +08:00
update
This commit is contained in:
parent
d3bc2c7d12
commit
4864ac7ea8
@ -54,4 +54,10 @@ class LoginController extends Controller
|
|||||||
}
|
}
|
||||||
header('Location:' . $location);
|
header('Location:' . $location);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function check (Request $request) {
|
||||||
|
return response([
|
||||||
|
'data' => $request->session()->get('id') ? true : false
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,6 +106,7 @@ Route::prefix('v1')
|
|||||||
// Login
|
// Login
|
||||||
Route::post('login', 'Passport\\LoginController@index');
|
Route::post('login', 'Passport\\LoginController@index');
|
||||||
Route::get ('token2Login', 'Passport\\LoginController@token2Login');
|
Route::get ('token2Login', 'Passport\\LoginController@token2Login');
|
||||||
|
Route::get ('check', 'Passport\\LoginController@check');
|
||||||
// Forget
|
// Forget
|
||||||
Route::post('forget', 'Passport\\ForgetController@index');
|
Route::post('forget', 'Passport\\ForgetController@index');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user