Viewing File: /home/markqprx/iniasli.pro/common-20260222054824/Auth/Controllers/TwoFactorQrCodeController.php

<?php

namespace Common\Auth\Controllers;

use Common\Core\BaseController;
use Illuminate\Support\Facades\Auth;

class TwoFactorQrCodeController extends BaseController
{
    public function show()
    {
        return $this->success([
            'svg' => Auth::user()->twoFactorQrCodeSvg(),
            'secret' => decrypt(Auth::user()->two_factor_secret),
        ]);
    }
}
Back to Directory File Manager