Skip to content

Commit b44609e

Browse files
authored
Update TwoFactorSetupKeyController.php
1 parent 60b6e22 commit b44609e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Controllers/TwoFactorSetupKeyController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class TwoFactorSetupKeyController extends Controller
99
{
1010
/**
11-
* Get the setup key for the user's two factor authentication.
11+
* Get the current user's two factor authentication setup key.
1212
*
1313
* @param \Illuminate\Http\Request $request
1414
* @return \Symfony\Component\HttpFoundation\Response
@@ -20,7 +20,7 @@ public function show(Request $request)
2020
}
2121

2222
return response()->json([
23-
'setupKey' => decrypt($request->user()->two_factor_secret),
23+
'key' => decrypt($request->user()->two_factor_secret),
2424
]);
2525
}
2626
}

0 commit comments

Comments
 (0)