Sha256: b0ff974780045d34d8f6e7ffa17e46e8fdf80e68ece37cc354bdd15f04bad035

Contents?: true

Size: 383 Bytes

Versions: 15

Compression:

Stored size: 383 Bytes

Contents

module JeraPush
  class Admin::AdminController < JeraPush::JeraPushController

    before_action :authenticate

    def authenticate
      if JeraPush.try(:admin_login)
        authenticate_or_request_with_http_basic do |username, password|
          username == JeraPush.admin_login[:username] && password == JeraPush.admin_login[:password]
        end
      end
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jera_push-2.1.4 app/controllers/jera_push/admin/admin_controller.rb
jera_push-2.1.3 app/controllers/jera_push/admin/admin_controller.rb
jera_push-2.1.2 app/controllers/jera_push/admin/admin_controller.rb
jera_push-2.0.0 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.2.4 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.2.3 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.2.1 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.1.7 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.1.6 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.1.5 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.1.4 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.1.3 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.1.2 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.1.1 app/controllers/jera_push/admin/admin_controller.rb
jera_push-1.1.0 app/controllers/jera_push/admin/admin_controller.rb