diff --git a/admin/app.rb b/admin/app.rb index 31850b5..b351e56 100644 --- a/admin/app.rb +++ b/admin/app.rb @@ -3,16 +3,6 @@ class Admin < Padrino::Application register Padrino::Mailer register Padrino::Admin::AccessControl - set :session_secret, "7043bc560e73c46f0d5eabedbabd217f9f5277e6935047bb9430296ab7b47a44" - set :sessions, true - set :delivery_method, :smtp => { - :address => 'smtp.lipsiasoft.com', - :port => '25', - :user_name => 'mailer@lipsiasoft.com', - :password => 'mailer!', - :authentication => :login # :plain, :login, :cram_md5, no auth by default - } - # App setting set :email_from, "Padrino WebSite " set :domain, "http://www.padrinorb.com" diff --git a/app/app.rb b/app/app.rb index 6cb159b..eff985a 100644 --- a/app/app.rb +++ b/app/app.rb @@ -5,14 +5,6 @@ class PadrinoWeb < Padrino::Application register Padrino::Contrib::ExceptionNotifier register Padrino::Contrib::Helpers::AssetsCompressor if Padrino.env == :production set :caching, true - set :sessions, true - set :delivery_method, :smtp => { - :address => 'smtp.lipsiasoft.com', - :port => '25', - :user_name => 'mailer@lipsiasoft.com', - :password => 'mailer!', - :authentication => :login # :plain, :login, :cram_md5, no auth by default - } set :exceptions_subject, "PadrinoWeb" set :exceptions_from, "Padrino WebSite " set :exceptions_to, Account.all.map(&:email) diff --git a/config/apps.rb b/config/apps.rb index 8eead70..6a598bc 100644 --- a/config/apps.rb +++ b/config/apps.rb @@ -12,7 +12,15 @@ =end Padrino.configure_apps do + set :sessions, true set :session_secret, '339ed174e13302a1c6f090df5ebf2b6df9d8e153f21df757229e0629aa143321' + set :delivery_method, :smtp => { + :address => 'smtp.lipsiasoft.com', + :port => '25', + :user_name => 'mailer@lipsiasoft.com', + :password => 'mailer!', + :authentication => :login # :plain, :login, :cram_md5, no auth by default + } end # Mounts the core application for this project