Skip to content
Snippets Groups Projects
Commit fd5ad0f0 authored by Erik Johnston's avatar Erik Johnston
Browse files

Doc string

parent 42f12ad9
No related branches found
No related tags found
No related merge requests found
......@@ -295,6 +295,12 @@ class AuthHandler(BaseHandler):
@defer.inlineCallbacks
def _find_user_id_and_pwd_hash(self, user_id):
"""Checks to see if a user with the given id exists. Will check case
insensitively, but will throw if there are multiple inexact matches.
Returns:
tuple: A 2-tuple of `(canonical_user_id, password_hash)`
"""
user_infos = yield self.store.get_users_by_id_case_insensitive(user_id)
if not user_infos:
logger.warn("Attempted to login as %s but they do not exist", user_id)
......
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