diff --git a/services/web/app/src/Features/SamlLog/SamlLogHandler.js b/services/web/app/src/Features/SamlLog/SamlLogHandler.js index 25c0c5d70e..9e2b3a734c 100644 --- a/services/web/app/src/Features/SamlLog/SamlLogHandler.js +++ b/services/web/app/src/Features/SamlLog/SamlLogHandler.js @@ -42,7 +42,9 @@ function log(req, data, samlAssertion) { } if (data.error || samlAssertion) { - data.body = req.body + data.body = {} + if (req.body.email) data.body.email = req.body.email + if (req.body.SAMLResponse) data.body.SAMLResponse = req.body.SAMLResponse } try {