diff --git a/services/web/app/src/Features/SamlLog/SamlLogHandler.js b/services/web/app/src/Features/SamlLog/SamlLogHandler.js index 9e2b3a734c..48e4dd96e7 100644 --- a/services/web/app/src/Features/SamlLog/SamlLogHandler.js +++ b/services/web/app/src/Features/SamlLog/SamlLogHandler.js @@ -41,10 +41,14 @@ function log(req, data, samlAssertion) { samlLog.samlAssertion = JSON.stringify(samlAssertionForLog) } - if (data.error || samlAssertion) { + if (data.error) { data.body = {} - if (req.body.email) data.body.email = req.body.email - if (req.body.SAMLResponse) data.body.SAMLResponse = req.body.SAMLResponse + if (req.body.email) { + data.body.email = req.body.email + } + if (req.body.SAMLResponse) { + data.body.SAMLResponse = req.body.SAMLResponse + } } try {