mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-16 08:37:53 +02:00
Refactoring - Move OTPHP logic to TwoFAccount model
This commit is contained in:
@ -44,7 +44,7 @@ class QrCodeController extends Controller
|
||||
*/
|
||||
public function show(TwoFAccount $twofaccount)
|
||||
{
|
||||
$uri = $this->twofaccountService->getURI($twofaccount);
|
||||
$uri = $twofaccount->getURI();
|
||||
|
||||
return response()->json(['qrcode' => $this->qrcodeService->encode($uri)], 200);
|
||||
}
|
||||
|
Reference in New Issue
Block a user