mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-04-02 20:06:16 +02: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
|
* @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 @@ public function show($id)
|
|||||||
*/
|
*/
|
||||||
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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user