Guest User

Untitled

a guest
Jun 13th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment