add default values

This commit is contained in:
root
2021-06-11 15:19:02 +00:00
parent c8729d0161
commit 925033a5b3
2 changed files with 5 additions and 5 deletions

View File

@@ -3,9 +3,9 @@ generic:
# allow to create user object without login
create_user_without_access_token: true
selfservice:
# specifies if admin/DPO is required to approve user deletion
# specifies if user can remove himself withour Admin/DPO approval (default false)
forget_me: false
# specifies if admin/DPO is required to approve user profile change
# specifies if user can change his data without Admin/DPO approval (default false)
user_record_change: true
# specifies a list of app-data objects user can change without approval
app_record_change: ["*"]

View File

@@ -38,13 +38,13 @@ type dbcon struct {
// Config is u sed to store application configuration
type Config struct {
Generic struct {
CreateUserWithoutAccessToken bool `yaml:"create_user_without_access_token"`
CreateUserWithoutAccessToken bool `yaml:"create_user_without_access_token" default:false`
UserRecordSchema string `yaml:"user_record_schema"`
AdminEmail string `yaml:"admin_email"`
}
SelfService struct {
ForgetMe bool `yaml:"forget_me"`
UserRecordChange bool `yaml:"user_record_change"`
ForgetMe bool `yaml:"forget_me" default:false`
UserRecordChange bool `yaml:"user_record_change" default:false`
AppRecordChange []string `yaml:"app_record_change"`
}
Notification struct {