Skip to content
Snippets Groups Projects
Unverified Commit 691cc4e0 authored by David Baker's avatar David Baker Committed by GitHub
Browse files

Merge pull request #2618 from matrix-org/dbkr/log_login_requests

Log login requests
parents 99354b43 0bb253f3
No related branches found
Tags v0.21.0-rc3
No related merge requests found
......@@ -166,6 +166,16 @@ class LoginRestServlet(ClientV1RestServlet):
Returns:
(int, object): HTTP code/response
"""
# Log the request we got, but only certain fields to minimise the chance of
# logging someone's password (even if they accidentally put it in the wrong
# field)
logger.info(
"Got login request with identifier: %r, medium: %r, address: %r, user: %r",
login_submission.get('identifier'),
login_submission.get('medium'),
login_submission.get('address'),
login_submission.get('user'),
)
login_submission_legacy_convert(login_submission)
if "identifier" not in login_submission:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment