a guest Jun 13th, 2018 58 Never
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'
RAW Paste Data