Constantine Vasil Fri, 09 Dec 2011 15:34:07 -0800
It should be: if db(auth.user.email == form.vars.email).count():
but auth.user is None because the user is logged of.