Check bad usernames @ login

This commit is contained in:
Bryan Ashby 2018-12-24 15:32:38 -07:00
parent 73e8b0454e
commit 06a1925288
3 changed files with 12 additions and 2 deletions

View file

@ -114,6 +114,10 @@ function SSHClient(clientConn) {
return handleSpecialError(err, username);
}
if(Errors.BadLogin().code === err.code) {
return terminateConnection();
}
return safeContextReject(SSHClient.ValidAuthMethods);
}