feat: add option to hide the login button from public-facing pages (#3922)

Co-authored-by: Henrique Dias <mail@hacdias.com>
This commit is contained in:
Lucky JainandHenrique Dias authored and GitHub committed 2025-11-14 16:21:08 +01:00
1 parent 9d44932dba
commit ac7b49c148
12 files changed
+29 -1

No files matched your search

+6
View File
@@ -41,6 +41,11 @@ override the options.`,
return err
}
hideLoginButton, err := getBool(flags, "hide-login-button")
if err != nil {
return err
}
createUserDir, err := getBool(flags, "create-user-dir")
if err != nil {
return err
@@ -84,6 +89,7 @@ override the options.`,
s := &settings.Settings{
Key: key,
Signup: signup,
HideLoginButton: hideLoginButton,
CreateUserDir: createUserDir,
MinimumPasswordLength: minLength,
Shell: convertCmdStrToCmdArray(shell),