daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def login_from_basic_auth
  2.       # return true
  3.       authenticate_with_http_basic do |username, password|
  4.         # This has to return true to let the user in
  5.         username == 'something' && password == 'something'
  6.       end
  7.     end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top