mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-31 04:31:01 -05:00
Merge pull request #371 from tygriffin/dev
Fix for bug when redirecting after password reset
This commit is contained in:
7
app/controllers/passwords_controller.rb
Normal file
7
app/controllers/passwords_controller.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class PasswordsController < Devise::PasswordsController
|
||||
|
||||
protected
|
||||
def after_resetting_password_path_for(resource)
|
||||
root_path
|
||||
end
|
||||
end
|
||||
@@ -3,7 +3,7 @@ Growstuff::Application.routes.draw do
|
||||
resources :plant_parts
|
||||
|
||||
|
||||
devise_for :members, :controllers => { :registrations => "registrations" }
|
||||
devise_for :members, :controllers => { :registrations => "registrations", :passwords => "passwords" }
|
||||
resources :members
|
||||
|
||||
resources :photos
|
||||
|
||||
Reference in New Issue
Block a user