Make open source
This commit is contained in:
9
app/controllers/application_controller.rb
Normal file
9
app/controllers/application_controller.rb
Normal file
@ -0,0 +1,9 @@
|
||||
class ApplicationController < ActionController::Base
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
if ENV['BASIC_AUTH_NAME'] && ENV['BASIC_AUTH_PASSWORD']
|
||||
http_basic_authenticate_with \
|
||||
name: ENV['BASIC_AUTH_NAME'],
|
||||
password: ENV['BASIC_AUTH_PASSWORD']
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user