Class: StandardId::Web::ResetPassword::ConfirmController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/standard_id/web/reset_password/confirm_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



12
13
# File 'app/controllers/standard_id/web/reset_password/confirm_controller.rb', line 12

def show
end

#updateObject



15
16
17
18
19
20
21
22
23
24
25
# File 'app/controllers/standard_id/web/reset_password/confirm_controller.rb', line 15

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 , status: :see_other
  else
    flash.now[:alert] = form.errors.full_messages.to_sentence
    render :show, status: :unprocessable_content
  end
end