mirror of
https://github.com/caprover/caprover
synced 2026-09-23 07:05:35 +00:00
Do not save SMTP for email netdata if username is not provided
This commit is contained in:
@@ -110,7 +110,10 @@ class DataStore {
|
||||
const netDataInfo = self.data.get(NET_DATA_INFO) || {}
|
||||
netDataInfo.isEnabled = netDataInfo.isEnabled || false
|
||||
netDataInfo.data = netDataInfo.data || {}
|
||||
netDataInfo.data.smtp = netDataInfo.data.smtp || {}
|
||||
netDataInfo.data.smtp =
|
||||
netDataInfo.data.smtp && netDataInfo.data.smtp.username
|
||||
? netDataInfo.data.smtp
|
||||
: {}
|
||||
netDataInfo.data.slack = netDataInfo.data.slack || {}
|
||||
netDataInfo.data.telegram = netDataInfo.data.telegram || {}
|
||||
netDataInfo.data.pushBullet = netDataInfo.data.pushBullet || {}
|
||||
|
||||
Reference in New Issue
Block a user