i guess you have set :
step 1 :
auth.settings.actions_disabled = ['register']

step 2 set the callback :
def __after_insert_auth_user(f, id):
row = db(db.auth_user.id == id).select().first()
mail.send(mail.email, 'Login credential', 'Email : %s, Password : password' 
% (mail.email) )

db.auth_user._after_insert.append(__after_insert_auth_user)

step 3 input the auth_user table for new user manually, which is admin job 
with :
db.auth_user.insert(first_name = 'a', last_name = 'a', email = '[email protected]', 
password = db.auth_user.password.validate('password')[0] )

in step 3 you can use the cli or appadmin, or custom controller

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to