Skip to content

Instantly share code, notes, and snippets.

@fbrubacher
Created November 4, 2010 17:34
Show Gist options
  • Save fbrubacher/662830 to your computer and use it in GitHub Desktop.
Save fbrubacher/662830 to your computer and use it in GitHub Desktop.
class MyApp1 < Padrino::Application
configure do
register SassInitializer
register Padrino::Helpers
register Padrino::Mailer
register Padrino::Warden
enable :sessions
use Rack::Session::Cookie, :key => 'rack.session', :expire_after => 31556926
set :auth_use_referrer, true
set :auth_failure_path, "/login"
set :auth_error_message, "Sorry for the trouble, but the email and password combination you entered doesn't match. Please try again!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment