Sha256: 99460e47d3cbb1c273894af364386fb5aa9b38d06b0c52eafd26188a77c11943

Contents?: true

Size: 542 Bytes

Versions: 4

Compression:

Stored size: 542 Bytes

Contents

module ThinkFeelDoEngine
  # Used ONLY in development to speed up manual logins.
  class QuickSignInsController < ApplicationController
    skip_authorization_check

    def new
      if params[:user_id]
        resource = User.where(id: params[:user_id]).first
      elsif params[:participant_id]
        ParticipantLoginEvent.create(participant_id: params[:participant_id])
        resource = Participant.where(id: params[:participant_id]).first
      end
      if resource
        sign_in_and_redirect resource
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
think_feel_do_engine-3.10.9 app/controllers/think_feel_do_engine/quick_sign_ins_controller.rb
think_feel_do_engine-3.10.8 app/controllers/think_feel_do_engine/quick_sign_ins_controller.rb
think_feel_do_engine-3.10.7 app/controllers/think_feel_do_engine/quick_sign_ins_controller.rb
think_feel_do_engine-3.10.6 app/controllers/think_feel_do_engine/quick_sign_ins_controller.rb