diff --git a/config/app.php b/config/app.php index 94978be8..a1474d54 100644 --- a/config/app.php +++ b/config/app.php @@ -11,7 +11,7 @@ return [ | change this value if you are not maintaining your own internal versions. */ - 'version' => '1.11.7', + 'version' => '1.11.8', /* |-------------------------------------------------------------------------- @@ -21,7 +21,7 @@ return [ | change this value if you are not maintaining your own internal versions. */ - 'fork-version' => '1.3.1', + 'fork-version' => '1.3.2', /* |-------------------------------------------------------------------------- diff --git a/resources/scripts/api/account/disableAccountTwoFactor.ts b/resources/scripts/api/account/disableAccountTwoFactor.ts index 2b41fe20..fe806400 100644 --- a/resources/scripts/api/account/disableAccountTwoFactor.ts +++ b/resources/scripts/api/account/disableAccountTwoFactor.ts @@ -1,9 +1,11 @@ import http from '@/api/http'; -export default (password: string): Promise => { +function disableAccountTwoFactor(password: string): Promise { return new Promise((resolve, reject) => { - http.delete('/api/client/account/two-factor', { params: { password } }) + http.post('/api/client/account/two-factor/disable', { password }) .then(() => resolve()) .catch(reject); }); -}; +} + +export default disableAccountTwoFactor; diff --git a/routes/api-client.php b/routes/api-client.php index 64ceecf3..6887f1b2 100644 --- a/routes/api-client.php +++ b/routes/api-client.php @@ -24,7 +24,7 @@ Route::prefix('/account')->middleware(AccountSubject::class)->group(function () Route::get('/', [Client\AccountController::class, 'index'])->name('api:client.account'); Route::get('/two-factor', [Client\TwoFactorController::class, 'index']); Route::post('/two-factor', [Client\TwoFactorController::class, 'store']); - Route::delete('/two-factor', [Client\TwoFactorController::class, 'delete']); + Route::post('/two-factor/disable', [Client\TwoFactorController::class, 'delete']); }); Route::put('/email', [Client\AccountController::class, 'updateEmail'])->name('api:client.account.update-email');