Skip to content
Snippets Groups Projects
Commit 338df4f4 authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Merge pull request #1649 from matrix-org/dbkr/log_ui_auth_args

Log the args that we have on UI auth completion
parents 3e90250e c9d4e7b7
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,15 @@ class AuthHandler(BaseHandler):
for f in flows:
if len(set(f) - set(creds.keys())) == 0:
logger.info("Auth completed with creds: %r", creds)
# it's very useful to know what args are stored, but this can
# include the password in the case of registering, so only log
# the keys (confusingly, clientdict may contain a password
# param, creds is just what the user authed as for UI auth
# and is not sensitive).
logger.info(
"Auth completed with creds: %r. Client dict has keys: %r",
creds, clientdict.keys()
)
defer.returnValue((True, creds, clientdict, session['id']))
ret = self._auth_dict_for_flows(flows, session)
......
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