def POST(self):        
        i = web.input(email="", password="")
        if not waltz.utils.valid_email(i.email):
            return self.GET(msg="invalid email")
        try:
            u = User(i.email)
        except __HOLE__:
            return self.GET(msg="no such user")
        if u.authenticate(i.password):
            session().update({'logged': True,
                              'email': i.email})
            raise web.seeother('/')
        return self.GET(msg="invalid credentials")
dataset/ETHPy150Open mekarpeles/waltz/examples/simplelogin/routes/auth.py/Login.POST