Skip to content
Browse files

Release v1.4.3 (small release)

  • Loading branch information...
1 parent ed1af28 commit 21e3de7b777ce67b5b5935139f9ad616ae79158e @binarylogic binarylogic committed Feb 22, 2009
View
4 CHANGELOG.rdoc
@@ -1,3 +1,7 @@
+== 1.4.3 released 2009-2-22
+
+* Fixed issue with brute force protection.
+
== 1.4.2 released 2009-2-20
* Cleaned up callbacks system to use hooks and execute in the proper order.
View
2 lib/authlogic/i18n.rb
@@ -33,7 +33,7 @@ module Authlogic
# login_blank: can not be blank
# login_not_found: does not exist
# login_invalid: should use only letters, numbers, spaces, and .-_@ please.
- # consecutive_failed_logins_limit_exceeded: Consecutive failed logins limit exceeded.
+ # consecutive_failed_logins_limit_exceeded: Consecutive failed logins limit exceeded, account is disabled.
# email_invalid: should look like an email address.
# password_blank: can not be blank
# password_invalid: is not valid
View
2 lib/authlogic/session/brute_force_protection.rb
@@ -39,7 +39,7 @@ def protect_from_brute_force_attacks?
def validate_failed_logins
if attempted_record.failed_login_count && attempted_record.failed_login_count >= consecutive_failed_logins_limit
errors.clear # Clear all other error messages, as they are irrelevant at this point and can only provide additional information that is not needed
- errors.add_to_base(I18n.t('error_messages.consecutive_failed_logins_limit_exceeded', :default => "Consecutive failed logins limit exceeded."))
+ errors.add_to_base(I18n.t('error_messages.consecutive_failed_logins_limit_exceeded', :default => "Consecutive failed logins limit exceeded, account is disabled."))
end
end
View
2 lib/authlogic/version.rb
@@ -44,7 +44,7 @@ def to_a
MAJOR = 1
MINOR = 4
- TINY = 2
+ TINY = 3
# The current version as a Version instance
CURRENT = new(MAJOR, MINOR, TINY)
View
2 test/session_tests/brute_force_protection_test.rb
@@ -35,7 +35,7 @@ def test_exeeding_failed_logins_limit
UserSession.consecutive_failed_logins_limit = 50
end
- def test_resetting_failed_logins_limit
+ def test_resetting_failed_logins_count
ben = users(:ben)
2.times do |i|

0 comments on commit 21e3de7

Please sign in to comment.
Something went wrong with that request. Please try again.