Manual:SessionManager and AuthManager/Adding fields to the registration form

This is a simple (and somewhat silly) example showing how to use AuthManager to add extra fields to the registration form.

Step 1: define the fields with an authentication request object.

Step 2: add a secondary authentication provider (a handler that is called when the User object representing the user becomes available) that signals the need for the request, and processes it:

Step 3 (optional): add a hook for customizing the presentation of the fields (see HTMLForm for the syntax of ):

Step 4: register the provider (and the hook if it was added):