debian-mirror-gitlab/app/controllers/jira_connect/users_controller.rb

22 lines
466 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
class JiraConnect::UsersController < ApplicationController
feature_category :integrations
2021-03-11 19:13:27 +05:30
layout 'signup_onboarding'
2021-01-03 14:25:43 +05:30
2022-02-05 19:09:49 +05:30
before_action :verify_return_to_url, only: [:show]
2021-01-03 14:25:43 +05:30
def show
@jira_app_link = params.delete(:return_to)
end
2022-02-05 19:09:49 +05:30
private
def verify_return_to_url
return unless params[:return_to].present?
params.delete(:return_to) unless Integrations::Jira.valid_jira_cloud_url?(params[:return_to])
end
2021-01-03 14:25:43 +05:30
end