Skip to content

Commit 733e2ab

Browse files
committed
Added store_valid_credential
Added store_valid_credential
1 parent 8a72124 commit 733e2ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/auxiliary/admin/http/cisco_ssm_onprem_account.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def run
153153
if json.key?('error_message')
154154
fail_with(Failure::UnexpectedReply, json['error_message'])
155155
else
156+
store_valid_credential(user: datastore['USER'], private: datastore['NEW_PASSWORD'], proof: json)
156157
print_good("Password for the #{datastore['USER']} user was successfully updated: #{datastore['NEW_PASSWORD']}")
157158
print_good("Login at: http://#{datastore['RHOSTS']}:#{datastore['RPORT']}/#/logIn?redirectURL=%2F") end
158159
else

0 commit comments

Comments
 (0)