here's what i do: in db.py: auth.settings.verify_email_onaccept = lambda form: __afterVerify(form) def __afterVerify(form): # any custom actions you want, including calling funtions in either the model or the controller # in my case, i log in my user. logInUser(db.auth_user[form.id]) auth.settings.verify_email_next = '/init/default/verified'
so i use __afterVerify to log in the user, then i send them to /init/ default/verified where i have all actions usable in a controller. here's the login info, in case you want that too. def __logInUser(user): # function to log in a user. taken from http://groups.google.com/group/web2py/browse_thread/thread/84f27e0a06312da2/a3c48ec55d9ceb05?hl=en&lnk=gst&q=session+auth+user#a3c48ec55d9ceb05 from gluon.storage import Storage session.auth = Storage(user=user, last_visit=request.now, expiration=auth.settings.expiration) hope that helps, matt On Feb 7, 11:10 am, "David J." <da...@styleflare.com> wrote: > I was wondering how I can execute a custom action on "verify_email" > > I have an external system that I want to notify once a user has > confirmed their email address; > > Thanks.