I don't know if I'm doing something wrong or it's not working as expected. I want the user to be approved before they can log in. I created a new application in web2py with all the default settings. In db.py, I added:
auth.settings.registration_requires_approval = True auth.settings.login_after_registration = False However, it allows a newly registered user to log in immediately after registration and log in subsequently as well.

