-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
On page 137 of Chapter 5 should the self#authenticate method be changed from this:
def self.authenticate(username, password)
user = new(username, password)
user.authenticate(password)
rescue Net::LDAP::LdapError => e
ActiveRecord::Base.logger.debug "!!! LDAP Error: #{e.message} !!!"
false
end
To this since the initialize method only takes one parameter?
def self.authenticate(username, password)
user = new(username) # <= Remove the password parameter
user.authenticate(password)
rescue Net::LDAP::LdapError => e
ActiveRecord::Base.logger.debug "!!! LDAP Error: #{e.message} !!!"
false
end
Metadata
Metadata
Assignees
Labels
No labels