mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
pep8 & remove debug logging
This commit is contained in:
parent
c12b9d719a
commit
99797947aa
@ -490,7 +490,7 @@ class AuthHandler(BaseHandler):
|
|||||||
self._prune_sessions()
|
self._prune_sessions()
|
||||||
|
|
||||||
def _prune_sessions(self):
|
def _prune_sessions(self):
|
||||||
for sid,sess in self.sessions.items():
|
for sid, sess in self.sessions.items():
|
||||||
last_used = 0
|
last_used = 0
|
||||||
if 'last_used' in sess:
|
if 'last_used' in sess:
|
||||||
last_used = sess['last_used']
|
last_used = sess['last_used']
|
||||||
|
@ -157,7 +157,9 @@ class RegisterRestServlet(RestServlet):
|
|||||||
registered_user_id
|
registered_user_id
|
||||||
)
|
)
|
||||||
access_token = yield self.auth_handler.issue_access_token(registered_user_id)
|
access_token = yield self.auth_handler.issue_access_token(registered_user_id)
|
||||||
refresh_token = yield self.auth_handler.issue_refresh_token(registered_user_id)
|
refresh_token = yield self.auth_handler.issue_refresh_token(
|
||||||
|
registered_user_id
|
||||||
|
)
|
||||||
defer.returnValue((200, {
|
defer.returnValue((200, {
|
||||||
"user_id": registered_user_id,
|
"user_id": registered_user_id,
|
||||||
"access_token": access_token,
|
"access_token": access_token,
|
||||||
@ -181,7 +183,6 @@ class RegisterRestServlet(RestServlet):
|
|||||||
|
|
||||||
# remember that we've now registered that user account, and with what
|
# remember that we've now registered that user account, and with what
|
||||||
# user ID (since the user may not have specified)
|
# user ID (since the user may not have specified)
|
||||||
logger.info("%r", body)
|
|
||||||
self.auth_handler.set_session_data(
|
self.auth_handler.set_session_data(
|
||||||
session_id, "registered_user_id", user_id
|
session_id, "registered_user_id", user_id
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user