Posted By

pdxmph on 04/16/11


Tagged


Versions (?)

Sinatra http auth


 / Published in: Ruby
 

  1. use Rack::Auth::Basic, "Restricted Area" do |username, password|
  2. [username, password] == ['admin', 'admin']
  3. end
  4.  

Report this snippet  

You need to login to post a comment.