Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def login_from_basic_auth
- # return true
- authenticate_with_http_basic do |username, password|
- # This has to return true to let the user in
- username == 'something' && password == 'something'
- end
- end
Add Comment
Please, Sign In to add comment