'S3 framework function
Designed to be called when a user is created through:
- registration via OAuth, LDAP, etc
Does the following:
- Sets session.auth.user for authorstamp, etc
- Approves user (to set registration groups, such as AUTHENTICATED, link to Person)'

def s3_register_onaccept(self, form):

    user = form.vars
    current.session.auth = Storage(user=user)
    self.s3_approve_user(user)
