File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ const (
4141 OrganizationSocialLogin = "social_login"
4242
4343 // user default traits
44- UserFirstName = "first_name"
44+ UserFirstName = "first_name"
45+ UserNewsletter = "newsletter"
4546)
4647
4748type Trait struct {
@@ -148,6 +149,16 @@ var DefaultTraits = []Trait{
148149 Heading : "Profile" ,
149150 Input : TraitInputText ,
150151 },
152+ {
153+ ResourceType : schema .UserPrincipal ,
154+ Name : UserNewsletter ,
155+ Title : "Newsletter Subscription" ,
156+ Description : "Subscribe to newsletter to get updates." ,
157+ Heading : "Profile" ,
158+ Input : TraitInputCheckbox ,
159+ InputHints : "true,false" ,
160+ Default : "false" ,
161+ },
151162 // Organization Traits
152163 {
153164 ResourceType : schema .OrganizationNamespace ,
You can’t perform that action at this time.
0 commit comments