Skip to content

Commit 2c5032b

Browse files
authored
Update TwoFactorSetupKeyController.php
1 parent ab1c842 commit 2c5032b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/TwoFactorSetupKeyController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TwoFactorSetupKeyController extends Controller
1616
public function show(Request $request)
1717
{
1818
if (is_null($request->user()->two_factor_secret)) {
19-
return [];
19+
abort(404, 'Two factor authentication has not been enabled.');
2020
}
2121

2222
return response()->json([

0 commit comments

Comments
 (0)