Files
fizzy/app/controllers/sessions/transfers_controller.rb
T
Stanko Krtalić 98755844a1 Remove the internal API
* Bind sessions to identities
* Remove references to the identity token
* Move email changes to identity
* Move account menu into a turbo-frame
* Create tenants from a tenanted route
2025-10-31 16:26:08 +01:00

17 lines
355 B
Ruby

class Sessions::TransfersController < ApplicationController
require_untenanted_access
require_unauthenticated_access
def show
end
def update
if identity = Identity.find_by_transfer_id(params[:id])
start_new_session_for identity
redirect_to session_menu_path(script_name: nil)
else
head :bad_request
end
end
end