gitlab-org--gitlab-foss/app/controllers/confirmations_controller.rb

26 lines
583 B
Ruby
Raw Normal View History

class ConfirmationsController < Devise::ConfirmationsController
2016-03-11 11:14:29 -05:00
def almost_there
flash[:notice] = nil
render layout: "devise_empty"
end
protected
2016-03-11 11:14:29 -05:00
def after_resending_confirmation_instructions_path_for(resource)
users_almost_there_path
end
def after_confirmation_path_for(resource_name, resource)
if signed_in?(resource_name)
2015-04-10 09:22:31 -04:00
after_sign_in_path_for(resource)
else
sign_in(resource)
if signed_in?(resource_name)
2015-04-10 09:22:31 -04:00
after_sign_in_path_for(resource)
else
new_session_path(resource_name)
end
end
end
end