|
@@ -906,18 +906,18 @@ func newMailService() {
|
|
if HookMode {
|
|
if HookMode {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- log.Info("Mail Service Enabled")
|
|
|
|
|
|
+ log.Info("Mail service is enabled")
|
|
}
|
|
}
|
|
|
|
|
|
func newRegisterMailService() {
|
|
func newRegisterMailService() {
|
|
if !Cfg.Section("service").Key("REGISTER_EMAIL_CONFIRM").MustBool() {
|
|
if !Cfg.Section("service").Key("REGISTER_EMAIL_CONFIRM").MustBool() {
|
|
return
|
|
return
|
|
} else if MailService == nil {
|
|
} else if MailService == nil {
|
|
- log.Warn("Register Mail Service: Mail Service is not enabled")
|
|
|
|
|
|
+ log.Warn("Email confirmation is not enabled due to the mail service is not available")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
Service.RegisterEmailConfirm = true
|
|
Service.RegisterEmailConfirm = true
|
|
- log.Info("Register Mail Service Enabled")
|
|
|
|
|
|
+ log.Info("Email confirmation is enabled")
|
|
}
|
|
}
|
|
|
|
|
|
// newNotifyMailService initializes notification email service options from configuration.
|
|
// newNotifyMailService initializes notification email service options from configuration.
|
|
@@ -926,7 +926,7 @@ func newNotifyMailService() {
|
|
if !Cfg.Section("service").Key("ENABLE_NOTIFY_MAIL").MustBool() {
|
|
if !Cfg.Section("service").Key("ENABLE_NOTIFY_MAIL").MustBool() {
|
|
return
|
|
return
|
|
} else if MailService == nil {
|
|
} else if MailService == nil {
|
|
- log.Warn("Notify Mail Service: Mail Service is not enabled")
|
|
|
|
|
|
+ log.Warn("Email notification is not enabled due to the mail service is not available")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
Service.EnableNotifyMail = true
|
|
Service.EnableNotifyMail = true
|
|
@@ -934,7 +934,7 @@ func newNotifyMailService() {
|
|
if HookMode {
|
|
if HookMode {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- log.Info("Notify Mail Service Enabled")
|
|
|
|
|
|
+ log.Info("Email notification is enabled")
|
|
}
|
|
}
|
|
|
|
|
|
func NewService() {
|
|
func NewService() {
|