Mattias Bodlund 1 week ago
parent
commit
f28c2b1a8b
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      app/controllers/application_controller.rb

+ 3
- 3
app/controllers/application_controller.rb View File

@ -5,7 +5,9 @@ class ApplicationController < ActionController::Base
private private
def authenticate def authenticate
http_basic_authenticate_with name: "stupid", password: "studio" if Rails.env.production?
authenticate_or_request_with_http_basic do |name, password|
name == "stupid" && password == "studio"
end if Rails.env.production?
end end
@ -17,6 +19,4 @@ private
def not_found def not_found
raise ActionController::RoutingError.new("Not Found") raise ActionController::RoutingError.new("Not Found")
end end
end end

Loading…
Cancel
Save