Class: CommandTower::Auth::EmailVerification::VerifyController
- Inherits:
-
CommandTower::ApplicationController
- Object
- ActionController::API
- CommandTower::ApplicationController
- CommandTower::Auth::EmailVerification::VerifyController
- Includes:
- AuthenticationBoundary, AuthorizationBoundary
- Defined in:
- app/controllers/command_tower/auth/email_verification/verify_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
#create ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/command_tower/auth/email_verification/verify_controller.rb', line 13 def create deserialized = CommandTower::Deserializers::Auth::EmailVerification::VerifyDeserializer.call(params) return render_verify_deserializer_errors unless deserialized.success? result = CommandTower::Workflows::Auth::EmailVerification::VerifyWorkflow.call( current_user: current_user, input: deserialized.input ) render_application_result(result) end |