I guess that means you are not using authentication. How did you set up your 
application in the first place? Can you delete it and start over with a "New 
simple application"?

If you don't want to start over, make sure you have these lines in a model 
file.

from gluon.tools import Mail, Auth
mail = Mail()                                  # mailer
auth = Auth(db)                                # 
authentication/authorization

mail.settings.server = 'logging' or 'smtp.gmail.com:587'  # your SMTP server
mail.settings.sender = '[email protected]'         # your email
mail.settings.login = 'username:password'      # your credentials or None

auth.settings.hmac_key = '<your secret key>'   # before define_tables()
auth.define_tables()                           # creates all needed tables
auth.settings.mailer = mail                    # for user email verification

Reply via email to