mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 21:57:47 +02:00
Run populateFromUri() from uri setter instead of external call
This commit is contained in:
@ -69,7 +69,7 @@ class QrCodeController extends Controller
|
||||
|
||||
// return the OTP object
|
||||
$twofaccount = new TwoFAccount;
|
||||
$twofaccount->populateFromUri($uri);
|
||||
$twofaccount->uri = $uri;
|
||||
|
||||
return response()->json($twofaccount->makeVisible(['uri', 'secret', 'algorithm']), 200);
|
||||
}
|
||||
|
Reference in New Issue
Block a user