Sha256: 426d91d158414b953049994a7ff061b6c9ef9a48ea07e1a3cc0bef0cefe43cbd

Contents?: true

Size: 653 Bytes

Versions: 7

Compression:

Stored size: 653 Bytes

Contents

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception


  #before_filter :authenticate_beta if Rails.env.development? && Rails.application.config.TEST_ADMIN_PWD!=''
  #before_filter :authenticate_beta if Rails.env.development?

  def authenticate_beta
    authenticate_or_request_with_http_basic('Administration') do |username, password|
      #username == 'admin' && password == Rails.application.config.TEST_ADMIN_PWD
      username == 'admin' && password == 'admin'
    end
  end


end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
optimacms-0.3.12 spec/dummy/app/controllers/application_controller.rb
optimacms-0.3.11 spec/dummy/app/controllers/application_controller.rb
optimacms-0.2.26 spec/dummy/app/controllers/application_controller.rb
optimacms-0.2.25 spec/dummy/app/controllers/application_controller.rb
optimacms-0.2.24 spec/dummy/app/controllers/application_controller.rb
optimacms-0.3.4 spec/dummy/app/controllers/application_controller.rb
optimacms-0.3.3 spec/dummy/app/controllers/application_controller.rb