Skip to content

Commit 77f6f54

Browse files
committed
chore: minor code style
1 parent d4d04ba commit 77f6f54

File tree

5 files changed

+4248
-4227
lines changed

5 files changed

+4248
-4227
lines changed

config.default.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ security:
8585
password_salt: # change this
8686
insecure_cookies: true # should be set to 'false', except when not running with HTTPS (e.g. on localhost)
8787
cookie_max_age: 172800
88-
allow_signup: true
89-
oidc_allow_signup: true
88+
allow_signup: true # whether to allow new user creation at all
89+
oidc_allow_signup: true # allow registration of new users from oidc
90+
disable_local_auth: false # disable login via local credentials (username and password) to enforce OIDC provider login
9091
signup_captcha: false
9192
invite_codes: true # whether to enable invite codes for overriding disabled signups
9293
disable_frontpage: false

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ type appConfig struct {
116116
}
117117

118118
type securityConfig struct {
119-
DisableLocalAuth bool `yaml:"disable_local_auth" default:"false" env:"WAKAPI_DISABLE_LOCAL_AUTH"`
120119
AllowSignup bool `yaml:"allow_signup" default:"true" env:"WAKAPI_ALLOW_SIGNUP"`
121120
OidcAllowSignup bool `yaml:"oidc_allow_signup" default:"true" env:"WAKAPI_OIDC_ALLOW_SIGNUP"`
121+
DisableLocalAuth bool `yaml:"disable_local_auth" default:"false" env:"WAKAPI_DISABLE_LOCAL_AUTH"`
122122
SignupCaptcha bool `yaml:"signup_captcha" default:"false" env:"WAKAPI_SIGNUP_CAPTCHA"`
123123
InviteCodes bool `yaml:"invite_codes" default:"true" env:"WAKAPI_INVITE_CODES"`
124124
ExposeMetrics bool `yaml:"expose_metrics" default:"false" env:"WAKAPI_EXPOSE_METRICS"`

0 commit comments

Comments
 (0)