oper: TLS client-cert fingerprint login — oper block gains an optional fp=<sha256>; password=* means cert-only. Named OperBlock struct replaces the (name,pass,level) tuple. (Password login was never broken — verified live.)

This commit is contained in:
Jean Chevronnet 2026-08-18 22:55:07 +00:00
parent 853be58d18
commit c4456cf002
6 changed files with 66 additions and 15 deletions

View file

@ -25,9 +25,9 @@ pub fn handle(s: &mut Server, method: &str, _params: &str) -> Result<String, Rpc
let opers: Vec<String> = s
.opers
.iter()
.map(|(name, _pass, _lvl)| {
.map(|o| {
obj(&[
("name", qstr(name)),
("name", qstr(&o.name)),
("type", qstr("")),
("online", "0".into()),
])