Multiple users, all admins
The single admin account becomes a list of users; config.json moves to version 2 and the old admin is migrated on first start. Every user is an admin. Sessions are tied to a user and their password, so deleting a user or resetting a password signs them out at once. API tokens belong to the user who made them and go away with that user. Admins add users with a temporary password and choose whether it must be changed at first sign-in; until then the API refuses everything but the password change. Settings gets My account and Users cards, and the token table shows each token's owner. 'GHOSTWIRE passwd [username]' resets any user's password. A failed update now also restores config.json, since the new version may have upgraded it.
This commit is contained in:
@@ -108,6 +108,8 @@ h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; over
|
||||
.dot.bad { background: var(--bad); }
|
||||
.dot.warn { background: var(--up); }
|
||||
.dot.big { width: 10px; height: 10px; }
|
||||
.tag.plain { background: #efefeb; color: #3d3e42; }
|
||||
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
|
||||
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); margin-left: 6px; vertical-align: 1px; }
|
||||
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; }
|
||||
.notice.err { background: #fbefee; color: var(--bad-ink); }
|
||||
@@ -248,6 +250,11 @@ dialog::backdrop { background: rgba(22, 23, 26, .55); }
|
||||
.signin:hover:not(:disabled) .en { display: none; }
|
||||
.signin:hover:not(:disabled) .ja { display: inline; }
|
||||
.loginform .err-text { color: #ff8a80; }
|
||||
.logintext { display: flex; flex-direction: column; gap: 6px; text-align: center; margin-top: -8px; }
|
||||
.logintext h1 { font-size: 20px; }
|
||||
.logintext p { margin: 0; color: #c9c9c3; }
|
||||
.linkbtn { background: none; border: 0; padding: 4px; font: inherit; font-size: 13px; color: #9cc3f5; text-decoration: underline; cursor: pointer; align-self: center; }
|
||||
.linkbtn:hover { color: #fff; }
|
||||
.loginform .err-text:empty { display: none; }
|
||||
.loginfoot { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8d8e93; }
|
||||
.err-text { color: var(--bad-ink); font-size: 13px; margin: 0; }
|
||||
|
||||
Reference in New Issue
Block a user