From 63ca79671d173b3bb8ff8929dfdc8bc6bbb5e6c2 Mon Sep 17 00:00:00 2001 From: Nixon Date: Thu, 17 Feb 2022 00:18:04 -0300 Subject: [PATCH] fix password reset link api --- lib/generators/authentication/authentication_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/authentication/authentication_generator.rb b/lib/generators/authentication/authentication_generator.rb index 717c180..918836a 100644 --- a/lib/generators/authentication/authentication_generator.rb +++ b/lib/generators/authentication/authentication_generator.rb @@ -37,7 +37,7 @@ def create_migrations end def add_routes - route "resource :password_resets, except: [:show, :destroy]" + route "resource :password_resets, only: [:new, :edit, :create, :update]" route "resource :cancellations, only: [:new, :create]" route "resource :passwords, only: [:update, :edit]" route "delete 'sign_out', to: 'sessions#destroy'"