aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortelyn <telyn@bytemark.co.uk>2017-01-05 16:25:23 +0000
committertelyn <telyn@bytemark.co.uk>2017-01-05 16:25:23 +0000
commit0b0aa77834a921566d3b99586b94013b470b5da6 (patch)
tree1fe89664fed6346d96d5eb887e4c6ca64283ee50 /lib
parent5c62ccc2858f8f8245cb6e8f7058c58de9363419 (diff)
ensure Mauve::Authentication.authenticate does what we think it does
Diffstat (limited to 'lib')
-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