Add create_credential_and_login in report.rb
parent
9f2f61c481
commit
0d4b2afca7
|
@ -45,6 +45,14 @@ module Auxiliary::Report
|
|||
end
|
||||
end
|
||||
|
||||
def create_credential_and_login(opts={})
|
||||
if active_db?
|
||||
framework.db.create_credential_and_login(opts)
|
||||
elsif !db_warning_given?
|
||||
vprint_warning('No active DB -- Credential data will not be saved!')
|
||||
end
|
||||
end
|
||||
|
||||
def invalidate_login(opts={})
|
||||
if active_db?
|
||||
super(opts)
|
||||
|
|
Loading…
Reference in New Issue