Class: CommandTower::Auth::SignupSession::CreateController

Inherits:
CommandTower::ApplicationController show all
Includes:
CommandTower::Api::ApplicationResponseRenderer
Defined in:
app/controllers/command_tower/auth/signup_session/create_controller.rb

Constant Summary

Constants inherited from CommandTower::ApplicationController

CommandTower::ApplicationController::AUTHENTICATION_EXPIRE_HEADER, CommandTower::ApplicationController::AUTHENTICATION_HEADER, CommandTower::ApplicationController::AUTHENTICATION_WITH_RESET

Instance Method Summary collapse

Methods inherited from CommandTower::ApplicationController

#authenticate_user!, #authenticate_user_without_email_verification!, #authorize_user!, #current_user, #safe_boolean

Instance Method Details

#createObject



9
10
11
12
13
# File 'app/controllers/command_tower/auth/signup_session/create_controller.rb', line 9

def create
  client_ip = CommandTower::Services::Auth::ClientIpResolver.call(request: request)
  result = CommandTower::Workflows::Auth::SignupSession::CreateWorkflow.call(client_ip: client_ip)
  render_application_result(result)
end