Class: StandardId::Web::ResetPassword::ConfirmController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- StandardId::Web::ResetPassword::ConfirmController
- Defined in:
- app/controllers/standard_id/web/reset_password/confirm_controller.rb
Constant Summary
Constants included from RateLimitHandling
RateLimitHandling::RATE_LIMIT_STORE
Instance Method Summary collapse
Methods included from StandardId::WebAuthentication
#current_account, #current_scope_names, #current_session, #revoke_current_session!
Methods included from ControllerPolicy
all_controllers, authenticated_controllers, public_controllers, register, registry_snapshot, reset_registry!
Instance Method Details
#show ⇒ Object
15 16 |
# File 'app/controllers/standard_id/web/reset_password/confirm_controller.rb', line 15 def show end |
#update ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/controllers/standard_id/web/reset_password/confirm_controller.rb', line 18 def update form = StandardId::Web::ResetPasswordConfirmForm.new(@password_credential, reset_password_confirm_form_params) if form.submit flash[:notice] = "Your password has been successfully reset. Please sign in with your new password." redirect_to login_path, status: :see_other else flash.now[:alert] = form.errors..to_sentence render :show, status: :unprocessable_content end end |