mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-19 17:55:18 +02:00
Remove useless check in controller
This commit is contained in:
@@ -56,10 +56,8 @@ class TwoFAccountController extends Controller
|
|||||||
* @param \App\TwoFAccount $twofaccount
|
* @param \App\TwoFAccount $twofaccount
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\Response
|
||||||
*/
|
*/
|
||||||
public function show($id)
|
public function show(TwoFAccount $twofaccount)
|
||||||
{
|
{
|
||||||
$twofaccount = TwoFAccount::FindOrFail($id);
|
|
||||||
|
|
||||||
return response()->json($twofaccount, 200);
|
return response()->json($twofaccount, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,9 +70,7 @@ class TwoFAccountController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function generateOTP(TwoFAccount $twofaccount)
|
public function generateOTP(TwoFAccount $twofaccount)
|
||||||
{
|
{
|
||||||
|
|
||||||
return response()->json(OTP::generate($twofaccount->uri), 200);
|
return response()->json(OTP::generate($twofaccount->uri), 200);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user