Module: Hephaestus::ValidatesWithBasicAuth

Includes:
ActionController::HttpAuthentication::Basic::ControllerMethods
Included in:
StaffController
Defined in:
app/controllers/concerns/hephaestus/validates_with_basic_auth.rb

Instance Method Summary collapse

Instance Method Details

#validate_basic_authObject



8
9
10
# File 'app/controllers/concerns/hephaestus/validates_with_basic_auth.rb', line 8

def validate_basic_auth
  http_basic_authenticate_or_request_with(name: "billy", password: Hephaestus::STAFF_PASSWORD)
end