summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_configuration.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/handler_configuration.go')
-rw-r--r--internal/handlers/handler_configuration.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/handlers/handler_configuration.go b/internal/handlers/handler_configuration.go
index 3a2b02cd3..d4eb9aff0 100644
--- a/internal/handlers/handler_configuration.go
+++ b/internal/handlers/handler_configuration.go
@@ -4,13 +4,15 @@ import "github.com/authelia/authelia/internal/middlewares"
type ConfigurationBody struct {
GoogleAnalyticsTrackingID string `json:"ga_tracking_id,omitempty"`
- RememberMeEnabled bool `json:"remember_me_enabled"` // whether remember me is enabled or not
+ RememberMe bool `json:"remember_me"` // whether remember me is enabled or not
+ ResetPassword bool `json:"reset_password"`
}
func ConfigurationGet(ctx *middlewares.AutheliaCtx) {
body := ConfigurationBody{
GoogleAnalyticsTrackingID: ctx.Configuration.GoogleAnalyticsTrackingID,
- RememberMeEnabled: ctx.Providers.SessionProvider.RememberMe != 0,
+ RememberMe: ctx.Providers.SessionProvider.RememberMe != 0,
+ ResetPassword: !ctx.Configuration.AuthenticationBackend.DisableResetPassword,
}
ctx.SetJSONBody(body)
}