Hi group,

Two questions relating to two Auth settings:

1. when I set *auth.settings.create_user_groups = False*, I suspect that 
'auth_group' table is not created at all after calling 
'auth.define_tables()'. Because if I do a 'auth.add_group(...)' after 
'auth.define_tables()' in a model file, web2py will throw error saying that 
'auth_group' table does not exist when trying to do the insert. However, if 
I leave *auth.settings.create_user_groups = True *(by default),  no such 
error is thrown. If this is the case, I wonder why. Surely, I would still 
want the table 'auth_group' created even if I don't want a new group 
created for each new user.

2. according to the manual, if we set 
*auth.settings.registration_requires_verification 
= True*, then an email will be sent to the user when she registers. I set 
it True, but nothing is sent after a user is registered. By registration, I 
mean the user fills out the register form exposed by Auth, clicks on the 
'register' button, and gets re-directed to a separate page. I've checked in 
the database and the user details are indeed in 'auth_user' table. However, 
no email is sent, yet no error appears to have been thrown. Do I need to do 
something extra in model or controller? I also wonder if I should look 
deeper to make sure that this service not blocked by firewall on my machine 
etc, but it's not clear to me where I should start looking. Does Web2py 
retain a log for each running application somewhere, or this is done by 
inserting debugging code manually? If the latter case, where should I put 
the debugging/logging code to track down what went wrong when sending the 
verification emails?

Many thanks!

Reply via email to