diff options
author | Hans Nilsson <[email protected]> | 2016-12-15 18:31:31 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2016-12-15 18:31:31 +0100 |
commit | 6b28c962113429b212020336e145ccd78ca699fd (patch) | |
tree | 96e0c5688099a8eb5bec26876c623b770bf5f08d /lib/ssh/src/ssh_auth.erl | |
parent | 93468dcbce14d002ec7e3525c813b83d33616d3d (diff) | |
parent | 169d8b4143cb8ccabdda13765c7d21ab9d2c9686 (diff) | |
download | otp-6b28c962113429b212020336e145ccd78ca699fd.tar.gz otp-6b28c962113429b212020336e145ccd78ca699fd.tar.bz2 otp-6b28c962113429b212020336e145ccd78ca699fd.zip |
Merge branch 'hans/ssh/cuddle_tests' into maint
Diffstat (limited to 'lib/ssh/src/ssh_auth.erl')
-rw-r--r-- | lib/ssh/src/ssh_auth.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_auth.erl b/lib/ssh/src/ssh_auth.erl index ac35b70209..9b54ecb2dd 100644 --- a/lib/ssh/src/ssh_auth.erl +++ b/lib/ssh/src/ssh_auth.erl @@ -406,7 +406,11 @@ handle_userauth_info_response(#ssh_msg_userauth_info_response{num_responses = 1, kb_tries_left = KbTriesLeft, user = User, userauth_supported_methods = Methods} = Ssh) -> - SendOneEmpty = proplists:get_value(tstflg, Opts) == one_empty, + SendOneEmpty = + (proplists:get_value(tstflg,Opts) == one_empty) + orelse + proplists:get_value(one_empty, proplists:get_value(tstflg,Opts,[]), false), + case check_password(User, unicode:characters_to_list(Password), Opts, Ssh) of {true,Ssh1} when SendOneEmpty==true -> Msg = #ssh_msg_userauth_info_request{name = "", |