Class: NsaPanel::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/nsa_panel/application_controller.rb

Direct Known Subclasses

DataController, UsersController

Instance Method Summary collapse

Instance Method Details

#authenticateObject



5
6
7
8
9
# File 'app/controllers/nsa_panel/application_controller.rb', line 5

def authenticate
  authenticate_or_request_with_http_basic do |username, password|
    NsaPanel.username == username && NsaPanel.password == password
  end
end