Skip to content

Commit

Permalink
refactor: add new lines to group sub config logically
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay committed Nov 15, 2023
1 parent ad52a15 commit 8510fd3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions internal/conf/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,17 @@ func (c *SMTPConfiguration) Validate() error {
}

type MailerConfiguration struct {
Autoconfirm bool `json:"autoconfirm"`
AllowUnverifiedEmailSignIns bool `json:"allow_unverified_email_sign_ins" split_words:"true" default:"true"`
Subjects EmailContentConfiguration `json:"subjects"`
Templates EmailContentConfiguration `json:"templates"`
URLPaths EmailContentConfiguration `json:"url_paths"`
SecureEmailChangeEnabled bool `json:"secure_email_change_enabled" split_words:"true" default:"true"`
OtpExp uint `json:"otp_exp" split_words:"true"`
OtpLength int `json:"otp_length" split_words:"true"`
Autoconfirm bool `json:"autoconfirm"`
AllowUnverifiedEmailSignIns bool `json:"allow_unverified_email_sign_ins" split_words:"true" default:"true"`

Subjects EmailContentConfiguration `json:"subjects"`
Templates EmailContentConfiguration `json:"templates"`
URLPaths EmailContentConfiguration `json:"url_paths"`

SecureEmailChangeEnabled bool `json:"secure_email_change_enabled" split_words:"true" default:"true"`

OtpExp uint `json:"otp_exp" split_words:"true"`
OtpLength int `json:"otp_length" split_words:"true"`
}

type PhoneProviderConfiguration struct {
Expand Down

0 comments on commit 8510fd3

Please sign in to comment.