From 34ce1142313b74e21a74c08c6dbd8d4312d7e336 Mon Sep 17 00:00:00 2001 From: Nicolas Carlier Date: Sun, 25 Feb 2018 19:49:08 +0000 Subject: Add Nunux Keeper integration --- ui/form/integration.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ui/form') diff --git a/ui/form/integration.go b/ui/form/integration.go index 8cc6d35..f8cadaf 100644 --- a/ui/form/integration.go +++ b/ui/form/integration.go @@ -28,6 +28,9 @@ type IntegrationForm struct { WallabagClientSecret string WallabagUsername string WallabagPassword string + NunuxKeeperEnabled bool + NunuxKeeperURL string + NunuxKeeperAPIKey string } // Merge copy form values to the model. @@ -48,6 +51,9 @@ func (i IntegrationForm) Merge(integration *model.Integration) { integration.WallabagClientSecret = i.WallabagClientSecret integration.WallabagUsername = i.WallabagUsername integration.WallabagPassword = i.WallabagPassword + integration.NunuxKeeperEnabled = i.NunuxKeeperEnabled + integration.NunuxKeeperURL = i.NunuxKeeperURL + integration.NunuxKeeperAPIKey = i.NunuxKeeperAPIKey } // NewIntegrationForm returns a new AuthForm. @@ -69,5 +75,8 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm { WallabagClientSecret: r.FormValue("wallabag_client_secret"), WallabagUsername: r.FormValue("wallabag_username"), WallabagPassword: r.FormValue("wallabag_password"), + NunuxKeeperEnabled: r.FormValue("nunux_keeper_enabled") == "1", + NunuxKeeperURL: r.FormValue("nunux_keeper_url"), + NunuxKeeperAPIKey: r.FormValue("nunux_keeper_api_key"), } } -- cgit v1.2.3