Displaying 1 result from an estimated 1 matches for "admin_password_in_md5".
2009 Aug 05
5
Logging out with Rake:Auth:Basic
Hi all,
I''m writting a small app that requires basic authentication in Sinatra.
I followed the advice of the official Sinatra faq
(http://www.sinatrarb.com/faq.html#auth) and have implemented this code
with success:
[code]
require ''rubygems''
require ''sinatra''
helpers do
def protected!
response[''WWW-Authenticate''] = %(Basic