From 5dd19185bbcebb9b5e0c640d3af3acc1bce92b89 Mon Sep 17 00:00:00 2001 From: Daniel Redetzke Date: Mon, 5 Oct 2026 08:54:04 +0300 Subject: [PATCH] Revert "Send adminUsername in /settings again" This reverts commit c846345a1c5ae03a3c677303dd4f9d0c265142f7. --- api.go | 3 --- main_test.go | 4 ---- 2 files changed, 7 deletions(-) diff --git a/api.go b/api.go index ed30478..9d0686f 100644 --- a/api.go +++ b/api.go @@ -1001,9 +1001,6 @@ func (a *App) getSettings(w http.ResponseWriter, r *http.Request) { "geo": a.geoStatus(), "fingerprint": a.tls.Fingerprint(), "logPath": a.logPath, - // Required by iOS app builds before 2c9cc1c, which App Review - // still tests. - "adminUsername": a.username(cfg, who(r).UserID), }) } diff --git a/main_test.go b/main_test.go index 5443b7a..94f653c 100644 --- a/main_test.go +++ b/main_test.go @@ -350,10 +350,6 @@ func TestAPI(t *testing.T) { bearer("POST", "/tokens", 403, map[string]string{"name": "more", "scope": "rw"}) bearer("DELETE", "/tokens/"+tok["id"].(string), 403) bearer("GET", "/backup", 403) - // Older iOS app builds cannot decode /settings without it. - if call("GET", "/settings", nil, 200)["adminUsername"] != "admin" { - t.Fatal("/settings lacks adminUsername") - } call("DELETE", "/peers/"+id, nil, 200) if len(store.Get().Peers) != 0 {