From 8294870ffc0a1a830e42ff1cfc524ddc9fa83a27 Mon Sep 17 00:00:00 2001 From: Emil Lundberg Date: Fri, 6 Oct 2023 13:00:58 +0200 Subject: [PATCH] Add HTML login form (fixes #4137) (#8757) --- gui/default/index.html | 58 ++- gui/default/syncthing/app.js | 18 +- .../syncthing/core/aboutModalView.html | 13 +- gui/default/syncthing/core/eventService.js | 8 +- .../syncthing/core/syncthingController.js | 49 +++ .../syncthing/settings/settingsModalView.html | 8 +- lib/api/api.go | 15 +- lib/api/api_auth.go | 189 ++++++-- lib/api/api_csrf.go | 14 +- lib/api/api_test.go | 411 +++++++++++++----- lib/config/guiconfiguration.pb.go | 143 +++--- proto/lib/config/guiconfiguration.proto | 1 + 12 files changed, 683 insertions(+), 244 deletions(-) diff --git a/gui/default/index.html b/gui/default/index.html index 07ac71ddf..0266da1a0 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -72,7 +72,7 @@ - + -