Even after a user's email is verified and they get the 'Email
Verified' in response.flash, I get 'Registration needs verification'
when trying to log in as that user.  What am I doing wrong?  Here's my
auth settings in db.py:

from gluon.tools import *
auth=Auth(globals(),db)            # authentication/authorization
auth.define_tables()               # creates all needed tables
crud=Crud(globals(),db)            # for CRUD helpers using auth
service=Service(globals())         # for json, xml, jsonrpc, xmlrpc,
amfrpc

## uncomment as necessary or consult docs for more options
crud.settings.auth=auth           # (optional) enforces authorization
on crud
mail=Mail()                                  # mailer
mail.settings.server='localhost:25'    # your SMTP server
mail.settings.sender='[email protected]'         # your email
mail.settings.login='xxxxx:xxxxx'      # your credentials
auth.settings.mailer=mail         # for user email verification
auth.settings.registration_requires_verification = True
#auth.settings.registration_requires_approval = False
auth.messages.verify_email = \
  'Click on the link 
http://localhost:8000/authtest/default/user/verify_email/%(key)s
to verify your email'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to