Rename a variable.

pull/8765/head
Patrick Cloke 2020-11-17 07:37:47 -05:00
parent c013c83136
commit 9f3f65771a
1 changed files with 4 additions and 4 deletions

View File

@ -77,14 +77,14 @@ class SsoHandler(BaseHandler):
auth_provider_id, auth_provider_id,
remote_user_id, remote_user_id,
) )
registered_user_id = await self.store.get_user_by_external_id( previously_registered_user_id = await self.store.get_user_by_external_id(
auth_provider_id, remote_user_id, auth_provider_id, remote_user_id,
) )
# A match was found, return the user ID. # A match was found, return the user ID.
if registered_user_id is not None: if previously_registered_user_id is not None:
logger.info("Found existing mapping %s", registered_user_id) logger.info("Found existing mapping %s", previously_registered_user_id)
return registered_user_id return previously_registered_user_id
# No match. # No match.
return None return None