def process_request(self, request):
        try:
            auth = request.GET.get('auth')
        except __HOLE__:
            # Django can throw an IOError when trying to read the GET
            # data.
            return

        if auth is None or (request.user and request.user.is_authenticated()):
            return
        user = authenticate(auth=auth)
        if user and user.is_active:
            login(request, user)
            msg = _lazy(u'You have been automatically logged in.')
            messages.success(request, msg)
dataset/ETHPy150Open mozilla/kitsune/kitsune/users/middleware.py/TokenLoginMiddleware.process_request