fix password reset, fix ip blocker, turn off js for now

This commit is contained in:
Kyle Drake 2013-07-12 07:04:01 +02:00
parent 6245319bc1
commit 93f7918340
4 changed files with 21 additions and 8 deletions

View file

@ -55,6 +55,19 @@ if ENV['RACK_ENV'] == 'development' && Server.count == 0
Server.create ip: '127.0.0.1', slots_available: 999999
end
Mail.defaults do
#options = { :address => "smtp.gmail.com",
# :port => 587,
# :domain => 'your.host.name',
# :user_name => '<username>',
# :password => '<password>',
# :authentication => 'plain',
# :enable_starttls_auto => true }
options = {}
delivery_method :sendmail, options
end
class Sinatra::Base
alias_method :render_original, :render
def render(engine, data, options = {}, locals = {}, &block)