get user for email server also from ENV

This commit is contained in:
dcore94 2022-09-30 16:00:20 +02:00
parent 6bd8fa3aab
commit 86548bb750
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Plugin(PyExecPlugin):
self.defaults = self.getDefaults(self.protocol) self.defaults = self.getDefaults(self.protocol)
self.server = self.getConfig(config, "server") self.server = self.getConfig(config, "server")
self.port = self.getConfig(config, "port") self.port = self.getConfig(config, "port")
self.user = self.getConfig(config, "user") self.user = os.environ.get('smtp_user', self.getConfig(config, "user"))
self.password = os.environ.get('smtp_pass', self.getConfig(config, "password")) self.password = os.environ.get('smtp_pass', self.getConfig(config, "password"))
logging.getLogger("pyexec").debug("Parsed config" + self.password) logging.getLogger("pyexec").debug("Parsed config" + self.password)