Class: Parlez::AuthController

Inherits:
ApplicationController show all
Defined in:
app/controllers/parlez/auth_controller.rb

Instance Method Summary collapse

Instance Method Details

#check_authenticationObject



3
4
5
6
7
8
# File 'app/controllers/parlez/auth_controller.rb', line 3

def check_authentication
  authenticate_or_request_with_http_basic 'Parlez!' do |user, pw|
    user == Parlez::Engine.config.username &&
    pw == Parlez::Engine.config.password
  end
end