Skip to content

Commit

Permalink
Update TwoFactorSetupKeyController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Mar 25, 2022
1 parent ab1c842 commit 2c5032b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/TwoFactorSetupKeyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TwoFactorSetupKeyController extends Controller
public function show(Request $request)
{
if (is_null($request->user()->two_factor_secret)) {
return [];
abort(404, 'Two factor authentication has not been enabled.');
}

return response()->json([
Expand Down

0 comments on commit 2c5032b

Please sign in to comment.