diff --git a/app/Http/Controllers/Api/Client/TwoFactorController.php b/app/Http/Controllers/Api/Client/TwoFactorController.php index ae74ad8b..bc553392 100644 --- a/app/Http/Controllers/Api/Client/TwoFactorController.php +++ b/app/Http/Controllers/Api/Client/TwoFactorController.php @@ -83,7 +83,7 @@ class TwoFactorController extends ClientApiController * Disables two-factor authentication on an account if the password provided * is valid. */ - public function delete(Request $request): JsonResponse + public function delete(Request $request): Response { if (!password_verify($request->input('password') ?? '', $request->user()->password)) { throw new BadRequestHttpException('The password provided was not valid.'); diff --git a/tests/Integration/Api/Client/Server/Schedule/ExecuteScheduleTest.php b/tests/Integration/Api/Client/Server/Schedule/ExecuteScheduleTest.php index 7c9d34d1..21e1daa8 100644 --- a/tests/Integration/Api/Client/Server/Schedule/ExecuteScheduleTest.php +++ b/tests/Integration/Api/Client/Server/Schedule/ExecuteScheduleTest.php @@ -68,7 +68,7 @@ class ExecuteScheduleTest extends ClientApiIntegrationTestCase $response->assertStatus(Response::HTTP_BAD_REQUEST); $response->assertJsonPath('errors.0.code', 'BadRequestHttpException'); - $response->assertJsonPath('errors.0.detail', 'Cannot trigger schedule exection for a schedule that is not currently active.'); + $response->assertJsonPath('errors.0.detail', 'Cannot trigger schedule exception for a schedule that is not currently active.'); } /**