From c639d580437f74c1f7a01c4965d3c6e1b7582019 Mon Sep 17 00:00:00 2001 From: mrambossek Date: Sat, 1 Aug 2026 23:39:55 +0200 Subject: [PATCH] adminui: make the enrolment link followable on the phone being enrolled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The link was printed as text next to an adb command, so enrolling a phone meant getting a 200-character string from one device onto another — which is the step that goes wrong, and it does not have to happen at all. The app registers the echolot:// scheme, so on the phone being enrolled following the link is the entire procedure. The raw string and the adb form stay for every other case: reading it on a laptop, or enrolling a device that is not the one holding the browser. Co-Authored-By: Claude Opus 5 --- server/internal/adminui/render.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/internal/adminui/render.go b/server/internal/adminui/render.go index 0e694c9..8d00c18 100644 --- a/server/internal/adminui/render.go +++ b/server/internal/adminui/render.go @@ -324,6 +324,12 @@ const baseHTML = `

Enrolment link

Single use, valid 24 hours. Treat it like a password until it is spent.

+ +

Open in the Echolot app

+

Only works on the phone you are enrolling. From anywhere else, copy the link + into the app's enrolment field, or deliver it over adb.

{{.}}

adb shell am start -a android.intent.action.VIEW -d "{{.}}"