AuthPassword Event
This event is fired on password authentication attempt from a client.
Syntax
sftpserver.on('AuthPassword', [callback])
Callback
The 'callback' is called when the 'AuthPassword' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.connectionID e.username e.password e.accept e.forceChangePassword
Remarks
Parameters Username and Password contain user credentials. If they are correct, set Accept to true. You can request password change by setting ForceChangePassword to true.