Class: Decidim::Mpassid::Verification::AuthorizationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/decidim/mpassid/verification/authorizations_controller.rb

Instance Method Summary collapse

Instance Method Details

#newObject



9
10
11
12
13
14
15
# File 'app/controllers/decidim/mpassid/verification/authorizations_controller.rb', line 9

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_mpassid_omniauth_authorize_path
end