Welcome to mirror list, hosted at ThFree Co, Russian Federation.

confirmations_controller.rb « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: af1faca93f6cb969fe7a7206df92d6f2dc53075b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class ConfirmationsController < Devise::ConfirmationsController

  protected

  def after_confirmation_path_for(resource_name, resource)
    if signed_in?(resource_name)
      after_sign_in_path_for(resource)
    else
      sign_in(resource)
      if signed_in?(resource_name)
        after_sign_in_path_for(resource)
      else
        new_session_path(resource_name)
      end
    end
  end
end