We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab1c842 commit 2c5032bCopy full SHA for 2c5032b
src/Http/Controllers/TwoFactorSetupKeyController.php
@@ -16,7 +16,7 @@ class TwoFactorSetupKeyController extends Controller
16
public function show(Request $request)
17
{
18
if (is_null($request->user()->two_factor_secret)) {
19
- return [];
+ abort(404, 'Two factor authentication has not been enabled.');
20
}
21
22
return response()->json([
0 commit comments