hi, i'm having the following problem. i want to have email
verification, so i added in the following lines from the pdf on the
homepage (and changed the mail settings for my server):

from gluon.tools import *

mail=Mail()
mail.settings.server="smtp.example.com:25"
mail.settings.sender="[email protected]"
mail.settings.login="[email protected]:password" or None # if no TLS
auth=Auth(globals(),db)
auth.mailer=mail
auth.settings.registration_requires_verification = False
auth.define_tables()
#auth.captcha=Recaptcha("public_key", "private_key")
auth.messages.verify_email = """Click on the link
    http://127.0.0.1:8000/app/default/user/verify_email/%(key)s
to verify your email, thanks for registering."""  #### IMPORTANT!

note that i commented out the captcha part because it was causing
errors for me.

when registration_requires_verification = False, i can register
properly. but when i set registration_requires_verification = True, it
tells me i have an invalid email when i submit. any idea what i'm
doing wrong?

my controller function for user is simply:
def user(): return dict(form=auth())

i have recently upgraded from 1.56 to 1.65, so it's possible it's an
upgrade error. thanks for any help.

matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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