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
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
#create ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/standard_id/web/reset_password/start_controller.rb', line 16 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
12 13 14 |
# File 'app/controllers/standard_id/web/reset_password/start_controller.rb', line 12 def show # Display the password reset request form end |