code: def check_basic_auth(self, username, password):
          
          valid = self.users.check_password(
              username, password
          )
          if not valid:
              log.warning('Invalid login from %s', username)
              valid = False
          return (
              valid,
              username
          )
docs: This function is called to check if a username /
          password combination is valid via the htpasswd file.