Skip to content

octree-gva/decidim-module-mkutano_custom_registration_flow

Repository files navigation

Decidim - Octree Participatory democracy on a robust and open source solution

MKUTANO is a participatory platform where black canadians can effectively & democratically organize at scale

Decidim::MkutanoCustomRegistrationFlow

Custom registration flow for Mkutano's Decidim.

What does it?

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:

  1. If the visitor is not connected => redirect to the /pages/welcome
  2. If the user is connected, but not verified => redirect to the /pages/welcome
  3. 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.

Usage

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.

Installation

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

Contributing

This repository is not yet ready for contributions.

License

This engine is distributed under the GNU AFFERO GENERAL PUBLIC LICENSE.



Decidim Installation by Octree

About

Custom registration flow for Mkutano's Decidim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages