Refactoring - Move OTPHP logic to TwoFAccount model

This commit is contained in:
Bubka
2022-07-05 10:10:24 +02:00
parent 1d99c27675
commit 720eb16750
24 changed files with 1297 additions and 1268 deletions

View File

@ -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);
}