Module: Devise::Models::HttpAuthenticatable::ClassMethods

Defined in:
lib/devise/models/http_authenticatable.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_with_http(username, password) ⇒ Object

Authenticate an user using http.



15
16
17
# File 'lib/devise/models/http_authenticatable.rb', line 15

def authenticate_with_http(username, password)
  authenticate(authentication_keys.first => username, :password => password)
end