diff --git a/app/controllers/devise_token_auth/passwords_controller.rb b/app/controllers/devise_token_auth/passwords_controller.rb index 242a0032f..cb3291baa 100644 --- a/app/controllers/devise_token_auth/passwords_controller.rb +++ b/app/controllers/devise_token_auth/passwords_controller.rb @@ -103,7 +103,7 @@ def edit config: params[:config] })) else - raise ActionController::RoutingError.new('Not Found') + render_edit_error end end @@ -179,6 +179,10 @@ def render_create_error }, status: @error_status end + def render_edit_error + raise ActionController::RoutingError.new('Not Found') + end + def render_update_error_unauthorized render json: { success: false,