Admin PIN: the fields say enough #7

Merged
michael merged 1 commits from claude/admin-pin-trim into main 2026-09-17 15:51:37 -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>