Sinatra http auth


/ Published in: Ruby
Save to your folder(s)



Copy this code and paste it in your HTML
  1. use Rack::Auth::Basic, "Restricted Area" do |username, password|
  2. [username, password] == ['admin', 'admin']
  3. end
  4.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.