MCPcopy Create free account
hub / github.com/mscdex/ssh2 / requestChange

Method requestChange

lib/server.js:175–184  ·  view source on GitHub ↗
(prompt, cb)

Source from the content-addressed store, hash-verified

173 }
174
175 requestChange(prompt, cb) {
176 if (this._changeCb)
177 throw new Error('Change request already in progress');
178 if (typeof prompt !== 'string')
179 throw new Error('prompt argument must be a string');
180 if (typeof cb !== 'function')
181 throw new Error('Callback argument must be a function');
182 this._changeCb = cb;
183 this._protocol.authPasswdChg(prompt);
184 }
185}
186
187

Callers 1

test-userauth.jsFile · 0.80

Calls 1

authPasswdChgMethod · 0.80

Tested by

no test coverage detected