Guest User

Untitled

a guest
Jul 17th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. class ApplicationController < ActionController::Base
  2. before_filter :authenticate
  3.  
  4. private
  5. def authenticate
  6. authenticate_or_request_with_http_basic do |username, password|
  7. username == 'UserName' && password == 'SecretPassword'
  8. end
  9. end
  10. end
Add Comment
Please, Sign In to add comment