app/controllers/decidim/verifications/sms/authorizations_controller.rb in decidim-verifications-0.21.0 vs app/controllers/decidim/verifications/sms/authorizations_controller.rb in decidim-verifications-0.22.0

- old
+ new

@@ -2,10 +2,12 @@ module Decidim module Verifications module Sms class AuthorizationsController < ApplicationController + include Decidim::Verifications::Renewable + helper_method :authorization def new enforce_permission_to :create, :authorization, authorization: authorization @@ -39,10 +41,10 @@ def update enforce_permission_to :update, :authorization, authorization: authorization @form = ConfirmationForm.from_params(params) - ConfirmUserAuthorization.call(authorization, @form) do + ConfirmUserAuthorization.call(authorization, @form, session) do on(:ok) do flash[:notice] = t("authorizations.update.success", scope: "decidim.verifications.sms") if redirect_url redirect_to redirect_url