mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-11-23 17:42:09 +00:00
a426bf1a65
Główne asked operators to scan a QR while the product moved to short-code pairing, so the dashboard button and the /?activateAgent=1 deep link opened the wrong flow. - Client-config card button and the sidebar entry (nav.pair_agent) open a pairing-code dialog: server address prefilled from the resolved client address, optional label, code generation, 10-minute countdown, copy. - Codes are minted via the existing POST /api/panel/pairing/codes behind enrollment.approve; plaintext shown once, never logged. No new endpoint. - The QR scanner stays reachable from the dialog (Scan agent QR) and from /pairing; the scanner modal title now names itself instead of reusing the old Activate agent label. - New keys nav.pair_agent, dashboard.pair_with_code, pairing.scan_qr_agent, pairing.generating in all 26 locales; agents.* step 3 / button / body no longer present QR as the primary path. - Test: web-nodejs/tests/dashboardPairingUi.test.js renders the view and asserts the code dialog wiring and the deep-link target. Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)