12345678910111213141516171819 |
- 'use strict';
- const Command = require('../../command');
- /**
- * Base authentication plugin
- */
- class PluginAuth extends Command {
- constructor(resolve, reject, multiAuthResolver) {
- super(resolve, reject);
- this.multiAuthResolver = multiAuthResolver;
- }
- successSend(packet, out, opts, info) {
- this.multiAuthResolver(packet, out, opts, info);
- }
- }
- module.exports = PluginAuth;
|