Class: Devise::Strategies::LdapAuthenticatable

Inherits:
Authenticatable
  • Object
show all
Defined in:
lib/devise_ldap_authenticatable/strategy.rb

Instance Method Summary collapse

Instance Method Details

#authenticate!Object



6
7
8
9
10
11
12
13
# File 'lib/devise_ldap_authenticatable/strategy.rb', line 6

def authenticate!
  resource = valid_password? && mapping.to.authenticate_with_ldap(authentication_hash.merge(password: password))
  return fail(:invalid) unless resource

  if validate(resource)
    success!(resource)
  end
end