aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/mauve/authentication.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/mauve/authentication.rb b/lib/mauve/authentication.rb
index 73c503a..d03178a 100644
--- a/lib/mauve/authentication.rb
+++ b/lib/mauve/authentication.rb
@@ -49,9 +49,7 @@ module Mauve
# @return [Boolean] Success or failure.
#
def self.authenticate(login, password)
- result = false
-
- ORDER.any? do |klass|
+ auth_success = ORDER.any? do |klass|
auth = klass.new
result = begin
@@ -73,7 +71,7 @@ module Mauve
sleep Configuration.current.failed_login_delay
end
- result
+ auth_success
end
end