In this application, we have opted to build a complex registration process in order to understand the typical requirements of web applications. So, it's better to plan it upfront before moving into the implementation. Let's build a list of requirements for registration:
- The user should be able to register as any of the given user roles
- If the user registers as a free member, the activation code needs to be generated and sent to the user
- If the user registers as a premium member, the user will be redirected to a separate page for payments, and notification will not be sent until the user completes the payment
- The default notification on successful registration needs to be customized to include the activation ...