Class: CommandTower::Auth::Username::AvailabilityController
- Inherits:
-
CommandTower::ApplicationController
- Object
- ActionController::API
- CommandTower::ApplicationController
- CommandTower::Auth::Username::AvailabilityController
- Includes:
- SignupSessionBoundary
- Defined in:
- app/controllers/command_tower/auth/username/availability_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
#show ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/command_tower/auth/username/availability_controller.rb', line 11 def show deserialized = CommandTower::Deserializers::Auth::UsernameAvailabilityDeserializer.call(params) return render_username_deserializer_errors unless deserialized.success? result = CommandTower::Workflows::Auth::UsernameAvailabilityWorkflow.call( input: deserialized.input, signup_session: current_signup_session ) render_application_result(result) end |