fix: 高危命令邮件收不到

This commit is contained in:
xinwen
2021-06-16 11:07:06 +08:00
committed by Jiangjie.Bai
parent b115ed3b79
commit 067a70463e

View File

@@ -83,7 +83,7 @@ class CommandAlertMessage(CommandAlertMixin, SystemMessage):
'command': input
}
message = self._get_message(command)
message = self._get_message()
return {
'subject': subject,
@@ -134,7 +134,7 @@ class CommandExecutionAlert(CommandAlertMixin, SystemMessage):
subject = _("Insecure Web Command Execution Alert: [%(name)s]") % {
'name': command['user'],
}
message = self._get_message(command)
message = self._get_message()
return {
'subject': subject,