Merge pull request #76 from jamesejr/feature/user_mailer
Implement Forgot Password Feature
This commit is contained in:
@@ -34,7 +34,12 @@ Railsgoat::Application.configure do
|
||||
|
||||
# Expands the lines which load the assets
|
||||
config.assets.debug = true
|
||||
|
||||
|
||||
# ActionMailer settings for email support
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
|
||||
config.action_mailer.default_url_options = { :host => "localhost:3000" }
|
||||
|
||||
config.middleware.insert_before(
|
||||
Rack::Lock, Rack::LiveReload,
|
||||
:min_delay => 500,
|
||||
|
||||
+1
-1
@@ -4,9 +4,9 @@ Railsgoat::Application.routes.draw do
|
||||
get "signup" => "users#new"
|
||||
get "logout" => "sessions#destroy"
|
||||
match "forgot_password" => "users#forgot_password"
|
||||
match "password_resets" => "password_resets#reset_password"
|
||||
|
||||
resources :sessions do
|
||||
|
||||
end
|
||||
|
||||
resources :users do
|
||||
|
||||
Reference in New Issue
Block a user