Check username & password options

bug/bundler_fix
wchen-r7 2017-01-23 11:42:04 -06:00
parent d7f43a2c66
commit 5de09d3455
1 changed files with 5 additions and 1 deletions

View File

@ -292,7 +292,11 @@ module Metasploit
errors.add(:cred_details, "must respond to :each") errors.add(:cred_details, "must respond to :each")
end end
if cred_details.prepended_creds.empty? && cred_details.additional_publics.empty? && cred_details.additional_privates.empty? if cred_details.prepended_creds.empty? &&
cred_details.additional_publics.empty? &&
cred_details.additional_privates.empty? &&
!cred_details.username.present? &&
!cred_details.password.present?
errors.add(:cred_details, "can't be blank") errors.add(:cred_details, "can't be blank")
end end
end end