basic authentication

This commit is contained in:
Jared Cosulich 2017-10-19 15:52:15 -04:00
parent f6e88b3ff6
commit aa5f1ad157
5 changed files with 12 additions and 1 deletions

View file

@ -9,4 +9,10 @@ class ApplicationController < ActionController::Base
return false
end
def authenticate(username, password)
authenticate_or_request_with_http_basic do |u, p|
u == username && p == password
end
end
end