def __before__(self):
        self.m = None
        # Authentication required?
        if self.requires_auth and 'user' not in session and g.tc.webpassword != '':
            # Remember where we came from so that the user can be sent there
            # after a successful login
            return redirect(url(controller='login', action='login'))
dataset/ETHPy150Open ralfonso/theory/theory/lib/base.py/BaseController.__before__/original