Update SMTP settings for Mailcatcher
This commit is contained in:
@@ -72,7 +72,7 @@ class UsersController < ApplicationController
|
||||
|
||||
def generate_token(id, email)
|
||||
hash = Digest::MD5.hexdigest(email)
|
||||
"#{id}~#{hash}"
|
||||
"#{id}-#{hash}"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -35,6 +35,10 @@ 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.middleware.insert_before(
|
||||
Rack::Lock, Rack::LiveReload,
|
||||
:min_delay => 500,
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
ActionMailer::Base.smtp_settings = {
|
||||
:address => 'mailtrap.io',
|
||||
:port => 2525,
|
||||
:authentication => :plain,
|
||||
:user_name => ENV['MAILTRAP_USERNAME'],
|
||||
:password => ENV['MAILTRAP_PASSWORD']
|
||||
}
|
||||
|
||||
ActionMailer::Base.delivery_method = :smtp
|
||||
Reference in New Issue
Block a user