mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-06 09:55:48 +02:00
Merge pull request #1649 from matrix-org/dbkr/log_ui_auth_args
Log the args that we have on UI auth completion
This commit is contained in:
commit
338df4f409
1 changed files with 9 additions and 1 deletions
|
@ -162,7 +162,15 @@ class AuthHandler(BaseHandler):
|
||||||
|
|
||||||
for f in flows:
|
for f in flows:
|
||||||
if len(set(f) - set(creds.keys())) == 0:
|
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']))
|
defer.returnValue((True, creds, clientdict, session['id']))
|
||||||
|
|
||||||
ret = self._auth_dict_for_flows(flows, session)
|
ret = self._auth_dict_for_flows(flows, session)
|
||||||
|
|
Loading…
Reference in a new issue