mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 16:23:18 +01:00
Remove useless check in controller
This commit is contained in:
parent
ead006cb07
commit
92d8c36a6d
@ -56,10 +56,8 @@ public function store(Request $request)
|
||||
* @param \App\TwoFAccount $twofaccount
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show($id)
|
||||
public function show(TwoFAccount $twofaccount)
|
||||
{
|
||||
$twofaccount = TwoFAccount::FindOrFail($id);
|
||||
|
||||
return response()->json($twofaccount, 200);
|
||||
}
|
||||
|
||||
@ -72,9 +70,7 @@ public function show($id)
|
||||
*/
|
||||
public function generateOTP(TwoFAccount $twofaccount)
|
||||
{
|
||||
|
||||
return response()->json(OTP::generate($twofaccount->uri), 200);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user