adminui: make the enrolment link followable on the phone being enrolled
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
6d042a9d89
commit
c639d58043
@@ -324,6 +324,12 @@ const baseHTML = `<!doctype html>
|
||||
<div class="panel">
|
||||
<h3>Enrolment link</h3>
|
||||
<p class="lede">Single use, valid 24 hours. Treat it like a password until it is spent.</p>
|
||||
<!-- On the phone being enrolled this is the whole procedure: the scheme is registered by the
|
||||
app, so following the link hands it the token directly. Copying a 200-character string
|
||||
between two devices is the step that goes wrong, and it does not have to happen at all. -->
|
||||
<p><a class="btn" href="{{.}}">Open in the Echolot app</a></p>
|
||||
<p class="muted">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.</p>
|
||||
<p><code>{{.}}</code></p>
|
||||
<p class="muted mono">adb shell am start -a android.intent.action.VIEW -d "{{.}}"</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user