fix: logout page

This commit is contained in:
Henrique Dias 2025-11-14 16:28:25 +01:00
parent af8de0d1e4
commit 953c31f770
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View File

@ -35,13 +35,12 @@ 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("logoutpage", "", "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")
flags.String("recaptcha.secret", "", "ReCaptcha secret")

View File

@ -56,8 +56,8 @@ you want to change. Other options will remain unchanged.`,
set.Signup, err = getBool(flags, flag.Name)
case "auth.method":
hasAuth = true
case "logoutpage":
set.LogoutPage = mustGetString(flags, flag.Name)
case "logout-page":
set.LogoutPage, err = getString(flags, flag.Name)
case "shell":
var shell string
shell, err = getString(flags, flag.Name)