Sha256: 7ef266884869b87ef5bdc04dd022eab4a7a33caf8ad670a32e7fd51393c930b0

Contents?: true

Size: 593 Bytes

Versions: 3

Compression:

Stored size: 593 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Suomifi
    module Verification
      class AuthorizationsController < ::Decidim::ApplicationController
        skip_before_action :store_current_location

        def new
          # Do enforce the permission here because it would cause
          # re-authorizations not to work as the authorization already exists.
          # In case the user wants to re-authorize themselves, they can just
          # hit this endpoint again.
          redirect_to decidim.user_suomifi_omniauth_authorize_path
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-suomifi-0.19.0 app/controllers/decidim/suomifi/verification/authorizations_controller.rb
decidim-suomifi-0.18.1 app/controllers/decidim/suomifi/verification/authorizations_controller.rb
decidim-suomifi-0.18.0 app/controllers/decidim/suomifi/verification/authorizations_controller.rb