It should be:   
  if db(auth.user.email == form.vars.email).count():

but auth.user is None because the user is logged of.
   

Reply via email to