Search code examples
zotonic

How to implement user registration with the Zotonic mod_signup module?


I would like users to be able to sign up a website made with Zotonic. According to the release notes of version 0.5.0, I should use the mod_signup module.

What is the correct way to use this module in a website? I've tried to create a "signup" page and to include the templates of mod_signup, without success.


Solution

  • When you enable the mod_signup module you will be able to use the signup form on the '/signup' page. Check the dispatch rules of mod_signup.

    You will also need to enable mod_emailer and (optionally) mod_acl_simple_roles (disable mod_acl_adminonly).

    Available config keys are:

    • mod_signup.request_confirm set to 0 or 1 to disable or enable confirmation e-mails
    • mod_signup.member_category set to the category for the new members (defaults to person)
    • mod_signup.member_visible_for the visibility of the new members, defaults to 0 (world viewable), choose 1 for only visible for members.