diff options
Diffstat (limited to 'internal/configuration/schema/authentication.go')
| -rw-r--r-- | internal/configuration/schema/authentication.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/configuration/schema/authentication.go b/internal/configuration/schema/authentication.go index 4cd6c7055..43305b6b1 100644 --- a/internal/configuration/schema/authentication.go +++ b/internal/configuration/schema/authentication.go @@ -8,7 +8,8 @@ import ( // AuthenticationBackend represents the configuration related to the authentication backend. type AuthenticationBackend struct { - PasswordReset AuthenticationBackendPasswordReset `koanf:"password_reset" json:"password_reset" jsonschema:"title=Password Reset" jsonschema_description:"Allows configuration of the password reset behaviour."` + PasswordReset AuthenticationBackendPasswordReset `koanf:"password_reset" json:"password_reset" jsonschema:"title=Password Reset" jsonschema_description:"Allows configuration of the password reset behaviour."` + PasswordChange AuthenticationBackendPasswordChange `koanf:"password_change" json:"password_change" jsonschema:"title=Password Reset" jsonschema_description:"Allows configuration of the password reset behaviour."` RefreshInterval RefreshIntervalDuration `koanf:"refresh_interval" json:"refresh_interval" jsonschema:"default=5 minutes,title=Refresh Interval" jsonschema_description:"How frequently the user details are refreshed from the backend."` @@ -17,6 +18,11 @@ type AuthenticationBackend struct { LDAP *AuthenticationBackendLDAP `koanf:"ldap" json:"ldap" jsonschema:"title=LDAP Backend" jsonschema_description:"The LDAP authentication backend configuration."` } +// AuthenticationBackendPasswordChange represents the configuration related to password reset functionality. +type AuthenticationBackendPasswordChange struct { + Disable bool `koanf:"disable" json:"disable" jsonschema:"default=false,title=Disable" jsonschema_description:"Disables the Password Change option."` +} + // AuthenticationBackendPasswordReset represents the configuration related to password reset functionality. type AuthenticationBackendPasswordReset struct { Disable bool `koanf:"disable" json:"disable" jsonschema:"default=false,title=Disable" jsonschema_description:"Disables the Password Reset option."` |
