Advertisement
Guest User

Untitled

a guest
May 25th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. class ApplicationController < ActionController::Base
  2.  
  3. before_filter :authenticate
  4.  
  5.  
  6.  
  7. def authenticate
  8. authenticate_or_request_with_http_basic('Police Ready') do |username, password|
  9. return false #this passes http authentication
  10. end
  11. end
  12.  
  13. end
  14.  
  15.  
  16. #the http authentication succeeds if I say "return false" but fails if i replace "return false" with "false.. why?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement