Preserve admin password input and clarify reconnect guidance

This commit is contained in:
mikecarper committed 2026-10-18 13:45:13 -07:00
1 parent ad4124b055
commit 5d741318f5
15 files changed
+2858 -2334

No files matched your search

+2 -1
View File
@@ -206,7 +206,8 @@ int main() {
Request absent; get(&absent); assert(absent.code == 401);
assert(absent.queued_response->headers.size() == 2);
assert(absent.queued_response->headers[0].first == "WWW-Authenticate"
&& absent.queued_response->headers[0].second == "Basic realm=\"MeshCore admin\", charset=\"UTF-8\"");
&& absent.queued_response->headers[0].second == "Basic realm=\"MeshCore (username: admin)\", charset=\"UTF-8\"");
assert(absent.body == "Sign in with username admin and this node's admin password.");
assert(absent.queued_response->headers[1].first == "Cache-Control"
&& absent.queued_response->headers[1].second == "no-store");
Request wrong; authorize(wrong, "Basic wrong"); get(&wrong); assert(wrong.code == 401);