Free Open-Source participatory democracy, citizen participation and open government for cities and organizations
This is the open-source repository for decidim_inspire, based on Decidim.
This authorization handler allows users to be directly verified with their birthdates by checking the records in a table.
You need to create records for the model Decidim::CustomCensusRecord
. For example:
[
{ email: "john.doe@example.org", date_of_birth: "1956-03-14" },
{ email: "jane.smith@example.org", date_of_birth: "1998-12-06" }
].each do |record|
Decidim::CustomCensusRecord.create(email: record[:email], metadata: { date_of_birth: record[:date_of_birth] })
end
The verification will succeed if the user is in the census and introduces the same birthdate as the one in the database.
This authorization handler will allow us to work with the Decidim Kids module.
You will need to do some steps before having the app working properly once you have deployed it:
- Create a System Admin user:
bin/rails decidim_system:create_admin
- Visit
<your app url>/system
and login with your system admin credentials - Create a new organization. Check the locales you want to use for that organization, and select a default locale.
- Set the correct default host for the organization, otherwise the app will not work properly. Note that you need to include any subdomain you might be using.
- Fill the rest of the form and submit it.
You are good to go!