Class: NsaPanel::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- NsaPanel::ApplicationController
show all
- Defined in:
- app/controllers/nsa_panel/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#authenticate ⇒ Object
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
|