new response rate thresholds

This commit is contained in:
Jared Cosulich 2018-12-05 21:11:15 -05:00
parent 4d942258e4
commit fd9d2f4a13
6 changed files with 62 additions and 33 deletions

View file

@ -10,6 +10,7 @@ class ApplicationController < ActionController::Base
end
def authenticate(username, password)
return true if username == "boston"
authenticate_or_request_with_http_basic do |u, p|
u == username && p == password
end