Class: StandardId::Web::ResetPassword::StartController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- StandardId::Web::ResetPassword::StartController
- Defined in:
- app/controllers/standard_id/web/reset_password/start_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/controllers/standard_id/web/reset_password/start_controller.rb', line 13 def create form = StandardId::Web::ResetPasswordStartForm.new(email: params[:email]) if form.submit flash[:notice] = "If an account with that email exists, we've sent password reset instructions." redirect_to login_path, status: :see_other else flash.now[:alert] = form.errors[:email].first || "Please enter your email address" render :show, status: :unprocessable_content end end |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/standard_id/web/reset_password/start_controller.rb', line 9 def show # Display the password reset request form end |