get_qr_code_url() public method

public get_qr_code_url ( $username, $secret )
function get_two_factor_auth_qr_url()
{
    require_once CONFIG_PATH_THIRDPARTY . 'Google2FA/Google2FA.php';
    $user = db_query_fetch_one('SELECT
            u.id,
            u.team_name,
            t.secret
        FROM users AS u
        JOIN two_factor_auth AS t
        WHERE
          u.id = :user_id', array('user_id' => $_SESSION['id']));
    if (empty($user['id']) || empty($user['secret'])) {
        message_error('No two-factor authentication tokens found for this user.');
    }
    return Google2FA::get_qr_code_url($user['team_name'], $user['secret']);
}