mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-19 01:46:03 +02:00
Bind Groups to Users & Add relevant authorizations with policies
This commit is contained in:
@@ -17,6 +17,8 @@ class QrCodeController extends Controller
|
||||
*/
|
||||
public function show(TwoFAccount $twofaccount)
|
||||
{
|
||||
$this->authorize('view', $twofaccount);
|
||||
|
||||
$uri = $twofaccount->getURI();
|
||||
|
||||
return response()->json(['qrcode' => QrCode::encode($uri)], 200);
|
||||
|
Reference in New Issue
Block a user