I see in  GAE Database Viewer in reset_password_key that there are some 
value - not sure if it will ask again for 'Registration needs verification'

       auth.settings.registration_requires_verification = False


I define user tabble as follows:
       from gluon.tools import Auth    
       settings = current.app.settings
       request = current.request

       db = current.app.db
       auth = Auth(current.app.db)      #authentication/authorization
       auth.settings.hmac_key = settings.security_key  # before 
define_tables()
       current.app.auth = auth
                  
       auth.define_tables(username=False, migrate = 
current.app.settings.migrate) #  to be called unless tables are defined 
manually

       db.auth_user.first_name.writable = db.auth_user.first_name.readable 
= False
       db.auth_user.last_name.writable = db.auth_user.last_name.readable 
=False


       auth.messages.verify_password_comment = ''
    
       auth.messages.login_button = 'Sign In'
       auth.messages.logged_in = 'Signed In'
     
       auth.messages.logged_out = 'Signed Out'
     
       #'table3cols', 'divs', 'ul'
       auth.settings.formstyle = 'table3cols'
     
       auth.messages.register_button = 'Sign Up'
    
       ## configure auth policy
       auth.settings.registration_requires_verification = False
       auth.settings.registration_requires_approval = False
       auth.settings.reset_password_requires_verification = True

       #validate if email is valid on login
       auth.settings.login_email_validate = True
       #go to home page, otherwise goes to profile
       auth.settings.logged_url = None       
              
       #get rid of the second password field: 
 auth.settings.register_verify_password=False
       current.app.auth = auth
        
       auth = current.app.auth



Reply via email to