Would worth save the credentials in the database if the login has been successful. The report_auth_info() from the Msf::Auxiliary::Report mixin can be used for this purpose.