Class: CommandTower::Auth::PasswordReset::ResetController
- Inherits:
-
CommandTower::ApplicationController
- Object
- ActionController::API
- CommandTower::ApplicationController
- CommandTower::Auth::PasswordReset::ResetController
- Includes:
- CommandTower::Api::ApplicationResponseRenderer, CommandTower::Api::DeserializerFailureDetails
- Defined in:
- app/controllers/command_tower/auth/password_reset/reset_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
10 11 12 13 14 15 16 |
# File 'app/controllers/command_tower/auth/password_reset/reset_controller.rb', line 10 def create deserialized = CommandTower::Deserializers::Auth::PasswordReset::ResetDeserializer.call(params) return render_reset_deserializer_errors(deserialized) unless deserialized.success? result = CommandTower::Workflows::Auth::PasswordReset::ResetWorkflow.call(input: deserialized.input) render_application_result(result) end |