Merge pull request #9486 from overleaf/jel-saml-log

[web] Only log email and/or SAML response from body

GitOrigin-RevId: 6942b87a3e9164e7f330955e3929c05865ce56fe
This commit is contained in:
Jessica Lawshe 2022-09-01 14:30:33 -05:00 committed by Copybot
parent e3a51ee385
commit d78d6b02bf

View file

@ -42,7 +42,9 @@ function log(req, data, samlAssertion) {
} }
if (data.error || 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 { try {