Last active
December 10, 2015 22:59
-
-
Save danielevans/4506577 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# simple sinatra auth | |
use Rack::Auth::Basic, "Restricted Area" do |username, password| | |
{ | |
"admin1" => "password1", | |
"admin2" => "password2" | |
}[username] == password | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment