Compare commits

...
Author SHA1 Message Date
Waters ChurchandClaude Opus 5 ea8be2ac76 Admin PIN: the fields say enough
The paragraph under the PIN fields explained what the PIN covers and how to
clear it by hand — and only someone already past the PIN could read it, so
the recovery note was never where it was needed. Gone, with the dead style
and the element lookup that hung off it.

The live line under the heading stays: it is the only thing that says
whether admin is locked, and the only warning that a passcode in the
server's environment outranks whatever is set here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 13:05:53 -04:00
3 changed files with 0 additions and 13 deletions
-8
View File
@@ -550,11 +550,3 @@ a.btn { text-decoration: none; }
gap: 8px; gap: 8px;
margin-left: auto; margin-left: auto;
} }
.pin-note { margin-top: 12px; }
.pin-note code {
font-size: 0.92em;
padding: 1px 5px;
border-radius: 4px;
background: var(--bg);
border: 1px solid var(--border);
}
-1
View File
@@ -132,7 +132,6 @@ function renderPin(state) {
: set : set
? 'Admin is locked. This page asks for the PIN, and so does every admin request.' ? 'Admin is locked. This page asks for the PIN, and so does every admin request.'
: 'Admin is open to anyone on the network. Set a 6-digit PIN to lock it.'; : 'Admin is open to anyone on the network. Set a 6-digit PIN to lock it.';
if (state.dataDir) document.getElementById('pin-file').textContent = state.dataDir + '/proddash.json';
} }
function pinMessage(text, bad = false) { function pinMessage(text, bad = false) {
-4
View File
@@ -92,10 +92,6 @@
<button class="btn" id="pin-clear" hidden>Turn off</button> <button class="btn" id="pin-clear" hidden>Turn off</button>
</div> </div>
</div> </div>
<p class="admin-copy pin-note">Only this page and the admin API ask for it — dashboards stay
open, and it is nothing to do with a module's own PIN, such as Slack's send PIN. Forgotten?
Remove <code>adminPin</code> from <code id="pin-file">proddash.json</code> in the settings
folder and restart.</p>
<div class="admin-status" id="pin-status"></div> <div class="admin-status" id="pin-status"></div>
</div> </div>
</section> </section>