Sha256: a1cd5a3ad36fda61ba7b213a9966429e82f5e9238875f85022ccd67b48cfa189
Contents?: true
Size: 639 Bytes
Versions: 11
Compression:
Stored size: 639 Bytes
Contents
# frozen_string_literal: true require_dependency "think_feel_do_engine/application_controller" 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 return unless resource sign_in_and_redirect resource end end end
Version data entries
11 entries across 11 versions & 1 rubygems