From d3a9f342951cc4087a20a93e95c434bdf6a9d116 Mon Sep 17 00:00:00 2001 From: jake-dog Date: Mon, 24 Nov 2025 20:10:34 -0500 Subject: [PATCH] rename logout-page to auth.logoutPage --- cmd/config.go | 2 +- cmd/config_set.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/config.go b/cmd/config.go index a309add6..7b03f1fe 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -35,11 +35,11 @@ func addConfigFlags(flags *pflag.FlagSet) { flags.Bool("create-user-dir", false, "generate user's home directory automatically") flags.Uint("minimum-password-length", settings.DefaultMinimumPasswordLength, "minimum password length for new users") flags.String("shell", "", "shell command to which other commands should be appended") - flags.String("logout-page", "", "url of custom logout page") flags.String("auth.method", string(auth.MethodJSONAuth), "authentication type") flags.String("auth.header", "", "HTTP header for auth.method=proxy") flags.String("auth.command", "", "command for auth.method=hook") + flags.String("auth.logoutPage", "", "url of custom logout page") flags.String("recaptcha.host", "https://www.google.com", "use another host for ReCAPTCHA. recaptcha.net might be useful in China") flags.String("recaptcha.key", "", "ReCaptcha site key") diff --git a/cmd/config_set.go b/cmd/config_set.go index 5a3ec708..9e577207 100644 --- a/cmd/config_set.go +++ b/cmd/config_set.go @@ -56,7 +56,7 @@ you want to change. Other options will remain unchanged.`, set.Signup, err = getBool(flags, flag.Name) case "auth.method": hasAuth = true - case "logout-page": + case "auth.logoutPage": set.LogoutPage, err = getString(flags, flag.Name) case "shell": var shell string