[MM-41785] Show error in invitation popin when email can't be send (#19617)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
@@ -93,6 +93,9 @@ const (
|
||||
EmailNotificationContentsFull = "full"
|
||||
EmailNotificationContentsGeneric = "generic"
|
||||
|
||||
EmailSMTPDefaultServer = "localhost"
|
||||
EmailSMTPDefaultPort = "10025"
|
||||
|
||||
SitenameMaxLength = 30
|
||||
|
||||
ServiceSettingsDefaultSiteURL = "http://localhost:8065"
|
||||
@@ -1598,11 +1601,11 @@ func (s *EmailSettings) SetDefaults(isUpdate bool) {
|
||||
}
|
||||
|
||||
if s.SMTPServer == nil || *s.SMTPServer == "" {
|
||||
s.SMTPServer = NewString("localhost")
|
||||
s.SMTPServer = NewString(EmailSMTPDefaultServer)
|
||||
}
|
||||
|
||||
if s.SMTPPort == nil || *s.SMTPPort == "" {
|
||||
s.SMTPPort = NewString("10025")
|
||||
s.SMTPPort = NewString(EmailSMTPDefaultPort)
|
||||
}
|
||||
|
||||
if s.SMTPServerTimeout == nil || *s.SMTPServerTimeout == 0 {
|
||||
|
||||
Ссылка в новой задаче
Block a user