> > The auth.register() function does not set session.email, so that's > probably why you're still getting the redirect after successful > registration. You could instead use an auth.settings.registration_onaccept > callback to add a flag to the session, or if you want to automatically > login the user upon registration (by setting > auth.settings.login_after_registration=True), you could just do: > > elif not auth.user: >
Actually, as long as you don't have auth.settings.registration_requires_verification = True, you can use the auth.user test even without setting auth.settings.login_after_registration = True. Anthony

