This is the first hands-on module. We will write one of the most needed functionalities of modern web applications in a module, a registration module featuring a double opt-in with a confirmation e-mail. The following tasks have to be covered by this module:
A registration has to be triggered by a user
An e-mail is send to an e-mail address including a URL to confirm registration
A URL can be opened to confirm registration
On confirmation of the registration by the user, the account should be enabled
A Job to remove registrations, which are older than a specified time interval
You will also see that there are some problems in keeping your application modularized, which will have to be worked around and require understanding, as to when to put code into a module and when to put it into the application.
The source code of the example is available at examples/chapter5/registration
.