I want to use the Bruteforce feature of authlogic, but haven't a clue how to go about configuring it. My user_session.rb
model looks like this:
class UserSession < Authlogic::Session::Base
#edited code to ensure specific login error isn't displayed
generalize_credentials_error_messages "Login/password invaild"
#brute force protection
consecutive_failed_logins_limit 3
#orginal code commented out
#def to_key
#new_record? ? nil : [ self.send(self.class.primary_key) ]
#end
#def persisted?
#false
#end
end
I know I need more configuration than this, but what? Any help appreciated.