update: remove old api

This commit is contained in:
tokumeikoi 2022-10-16 15:26:13 +08:00
parent 6503664fcc
commit ce120bad63
2 changed files with 1 additions and 21 deletions

View File

@ -17,24 +17,6 @@ use ReCaptcha\ReCaptcha;
class CommController extends Controller class CommController extends Controller
{ {
// TODO: remove on 1.5.5
public function config()
{
return response([
'data' => [
'isEmailVerify' => (int)config('v2board.email_verify', 0) ? 1 : 0,
'isInviteForce' => (int)config('v2board.invite_force', 0) ? 1 : 0,
'emailWhitelistSuffix' => (int)config('v2board.email_whitelist_enable', 0)
? $this->getEmailSuffix()
: 0,
'isRecaptcha' => (int)config('v2board.recaptcha_enable', 0) ? 1 : 0,
'recaptchaSiteKey' => config('v2board.recaptcha_site_key'),
'appDescription' => config('v2board.app_description'),
'appUrl' => config('v2board.app_url')
]
]);
}
private function isEmailVerify() private function isEmailVerify()
{ {
return response([ return response([

View File

@ -14,12 +14,10 @@ class PassportRoute
$router->post('/auth/register', 'Passport\\AuthController@register'); $router->post('/auth/register', 'Passport\\AuthController@register');
$router->post('/auth/login', 'Passport\\AuthController@login'); $router->post('/auth/login', 'Passport\\AuthController@login');
$router->get ('/auth/token2Login', 'Passport\\AuthController@token2Login'); $router->get ('/auth/token2Login', 'Passport\\AuthController@token2Login');
$router->post('/auth/forget', 'Passport\\AuthController@forget'); // TODO: 1.7.0 remove $router->post('/auth/forget', 'Passport\\AuthController@forget');
$router->post('/auth/getTempToken', 'Passport\\AuthController@getTempToken'); // TODO: 1.7.0 remove
$router->post('/auth/getQuickLoginUrl', 'Passport\\AuthController@getQuickLoginUrl'); $router->post('/auth/getQuickLoginUrl', 'Passport\\AuthController@getQuickLoginUrl');
$router->post('/auth/loginWithMailLink', 'Passport\\AuthController@loginWithMailLink'); $router->post('/auth/loginWithMailLink', 'Passport\\AuthController@loginWithMailLink');
// Comm // Comm
$router->get ('/comm/config', 'Passport\\CommController@config');
$router->post('/comm/sendEmailVerify', 'Passport\\CommController@sendEmailVerify'); $router->post('/comm/sendEmailVerify', 'Passport\\CommController@sendEmailVerify');
$router->post('/comm/pv', 'Passport\\CommController@pv'); $router->post('/comm/pv', 'Passport\\CommController@pv');
}); });