README.md in decidim-verifications-0.21.0 vs README.md in decidim-verifications-0.22.0

- old
+ new

@@ -60,11 +60,11 @@ ```ruby # config/initializers/decidim.rb Decidim::Verifications.register_workflow(:census) do |workflow| - workflow.form = "<myAuthorizationHandlerClass" + workflow.form = "<myAuthorizationHandlerClass>" end ``` * _Workflow authorizations_. @@ -94,9 +94,25 @@ * `new_authorization_path`: This is the entry point to start the authorization process. * `edit_authorization_path`: This is the entry point to resume an existing authorization process. + +* _Renewable authorizations_. + By default a participant can't renew its authorization, but this can be enabled when registering the workflow, the time between renewals can be configured (one day by default). + + Optionally to change the renew modal content part of the data stored, you can set a new value for the cell used to render the metadata. + + ```ruby + # config/initializers/decidim.rb + + Decidim::Verifications.register_workflow(:census) do |workflow| + workflow.form = "myAuthorizationHandlerClass" + workflow.renewable = true + workflow.time_between_renewals = 1.day + workflow.metadata_cell = "decidim/verifications/authorization_metadata" + end + ``` ### SMS verification Decidim comes with a verification workflow designed to verify users by sending an SMS to their mobile phone.