def authenticate(self, username, password):
        user = self.application.authenticate(username=username, password=password)
        if user is not None:
            self.session["user_id"] = user.id
dataset/ETHPy150Open niwinz/tornado-webtools/webtools/auth/handlers.py/AuthHandlerMixin.authenticate/original