This commit is contained in:
15
app/controllers/sessions/transfers_controller.rb
Normal file
15
app/controllers/sessions/transfers_controller.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class Sessions::TransfersController < ApplicationController
|
||||
allow_unauthenticated_access
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
def update
|
||||
if user = User.active.find_by_transfer_id(params[:id])
|
||||
start_new_session_for user
|
||||
redirect_to post_authenticating_url
|
||||
else
|
||||
head :bad_request
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user