Method: Editus::ApplicationController#authenticate!
- Defined in:
- app/controllers/editus/application_controller.rb
#authenticate! ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/controllers/editus/application_controller.rb', line 13 def authenticate! return if editus_auth_account.present? return head 401 if editus_account_needed? return if authenticate(Editus.configuration.auth) request_http_basic_authentication end |