We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4a8690 commit b9a9b90Copy full SHA for b9a9b90
modules/auxiliary/admin/http/cfme_manageiq_evm_pass_reset.rb
@@ -6,6 +6,7 @@
6
##
7
8
require 'msf/core'
9
+require 'bcrypt'
10
require 'digest'
11
require 'openssl'
12
@@ -49,16 +50,7 @@ def initialize
49
50
51
def password_for_newer_schema
52
# Newer versions use ActiveModel's SecurePassword.
- begin
53
- require 'bcrypt'
54
-
55
- BCrypt::Password.create(datastore['TARGETPASSWORD'])
56
57
- rescue LoadError
58
- print_error('Can\'t load "bcrypt" gem')
59
- print_status('Using "smartvm" as the password of the target account for this request...')
60
- '$2a$10$OHgj8h5MtsbmIAC9RPsrK.PH9t6Y.qGZxjHxUToKUJtFLJ0eY42/u'
61
- end
+ BCrypt::Password.create(datastore['TARGETPASSWORD'])
62
end
63
64
def password_for_older_schema
0 commit comments