mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
19 lines
465 B
PHP
19 lines
465 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Server;
|
|
use Illuminate\Http\Request;
|
|
use App\Http\Controllers\Controller as BaseController;
|
|
|
|
class Controller extends BaseController
|
|
{
|
|
public function __construct(Request $request) {
|
|
$token = $request->input('token');
|
|
if (empty($token)) {
|
|
abort(500, 'token is null');
|
|
}
|
|
if ($token !== config('v2board.server_token')) {
|
|
abort(500, 'token is error');
|
|
}
|
|
}
|
|
}
|