Octree |
Contact Us |
Our Blog (FR)
Decidim |
Decidim Docs |
Participatory Governance (meta decidim)
Decidim Community (Matrix+Element.io)
Custom registration flow for Mkutano's Decidim.
This module add a middleware, that check all the routes starting with /assemblies
slug.
In Mkutano's Decidim, we use decidim donation module, and makes a paywall to access the assemblies.
Only verified members can access the assemblies. The module enforce this rule this way:
- If the visitor is not connected => redirect to the
/pages/welcome
- If the user is connected, but not verified => redirect to the
/pages/welcome
- If the user is connected and verified (by any means) => show the assemblies.
These restrictions apply at the controller level, with a middleware, and in the graphql queries.
You can create public assemblies, they will all be under the paywall. If you want assemblies with others kind of validations/paywalls, you can creates private assemblies, and manage them manually through the insertion of Private Users.
Add this line to your application's Gemfile:
gem "decidim-mkutano_custom_registration_flow", git: "https://github.com/octree-gva/decidim-mkutano_custom_registration_flow"
Then execute:
bundle
Finally, create a page with the slug welcome
This repository is not yet ready for contributions.
This engine is distributed under the GNU AFFERO GENERAL PUBLIC LICENSE.