Update qr code

This commit is contained in:
Eugene Burmakin 2025-08-30 21:32:25 +02:00
parent 006456966d
commit ed5e4d1664

View file

@ -2,12 +2,13 @@
module UserHelper
def api_key_qr_code(user)
qrcode = RQRCode::QRCode.new(user.api_key)
json = { 'server_url' => root_url, 'api_key' => user.api_key }
qrcode = RQRCode::QRCode.new(json.to_json)
svg = qrcode.as_svg(
color: "000",
fill: "fff",
shape_rendering: "crispEdges",
module_size: 11,
color: '000',
fill: 'fff',
shape_rendering: 'crispEdges',
module_size: 6,
standalone: true,
use_path: true,
offset: 5