diff --git a/app/controllers/decidim/helsinki_smsauth/omniauth_controller.rb b/app/controllers/decidim/helsinki_smsauth/omniauth_controller.rb index bd5c256..456c5a8 100644 --- a/app/controllers/decidim/helsinki_smsauth/omniauth_controller.rb +++ b/app/controllers/decidim/helsinki_smsauth/omniauth_controller.rb @@ -7,7 +7,7 @@ class OmniauthController < ::Decidim::Devise::OmniauthRegistrationsController helper Decidim::HelsinkiSmsauth::Engine.routes.url_helpers helper Decidim::HelsinkiSmsauth::RegistrationHelper - before_action :ensure_authorized, only: [:new, :user_registry] + before_action :ensure_authorized, only: [:new, :registration, :user_registry] def new @form = form(OmniauthForm).instance @@ -37,6 +37,8 @@ def update end end + def registration; end + def send_message @form = ::Decidim::HelsinkiSmsauth::OmniauthForm.from_params(params) # in the test, and development environment, and with the telia gateway installation,