diff options
author | Florian Wininger <florian@cyberwatch.fr> | 2021-07-01 22:17:46 +0200 |
---|---|---|
committer | Florian Wininger <florian@cyberwatch.fr> | 2021-07-01 22:17:46 +0200 |
commit | b11dc6e755bbc03058bb12c623961a0695538fb0 (patch) | |
tree | 567f524185abc09ec6bb2a6a593b5a4abb78393d /lib/net/ssh/authentication/methods/password.rb | |
parent | 093a84100e51365db9680d8ebd0755a4f1ebb455 (diff) | |
download | net-ssh-b11dc6e755bbc03058bb12c623961a0695538fb0.tar.gz |
Fix empty line for code clarity
Diffstat (limited to 'lib/net/ssh/authentication/methods/password.rb')
-rw-r--r-- | lib/net/ssh/authentication/methods/password.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/net/ssh/authentication/methods/password.rb b/lib/net/ssh/authentication/methods/password.rb index e18edee..9cb1828 100644 --- a/lib/net/ssh/authentication/methods/password.rb +++ b/lib/net/ssh/authentication/methods/password.rb @@ -6,7 +6,6 @@ module Net module SSH module Authentication module Methods - # Implements the "password" SSH authentication method. class Password < Abstract # Attempt to authenticate the given user for the given service. If @@ -29,6 +28,7 @@ module Net raise Net::SSH::Authentication::DisallowedMethod unless message[:authentications].split(/,/).include? 'password' + password = nil end end until (message.type != USERAUTH_FAILURE || retries >= max_retries) @@ -74,7 +74,6 @@ module Net options[:non_interactive] ? 0 : result end end - end end end |