Make open source

This commit is contained in:
John Lees-Miller
2018-10-27 16:46:26 +01:00
commit 6e82ba528b
163 changed files with 3912 additions and 0 deletions

View 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