simplify admin email notifications
This commit is contained in:
committed by
Umputun
parent
91580194e9
commit
1ce3cf3d1f
@@ -457,10 +457,6 @@ func (s *ServerCommand) newServerApp() (*serverApp, error) {
|
||||
ProxyCORS: s.ProxyCORS,
|
||||
}
|
||||
|
||||
if s.Notify.Email.AdminNotifications {
|
||||
srv.AdminEmail = s.Admin.Shared.Email
|
||||
}
|
||||
|
||||
srv.ScoreThresholds.Low, srv.ScoreThresholds.Critical = s.LowScore, s.CriticalScore
|
||||
|
||||
var devAuth *provider.DevAuthServer
|
||||
@@ -847,6 +843,9 @@ func (s *ServerCommand) makeNotify(dataStore *service.DataStore, authenticator *
|
||||
return tkn, nil
|
||||
},
|
||||
}
|
||||
if s.Notify.Email.AdminNotifications {
|
||||
emailParams.AdminEmails = s.Admin.Shared.Email
|
||||
}
|
||||
smtpParams := notify.SMTPParams{
|
||||
Host: s.SMTP.Host,
|
||||
Port: s.SMTP.Port,
|
||||
|
||||
Reference in New Issue
Block a user