Check bad usernames @ login
This commit is contained in:
@@ -114,6 +114,10 @@ function SSHClient(clientConn) {
|
||||
return handleSpecialError(err, username);
|
||||
}
|
||||
|
||||
if(Errors.BadLogin().code === err.code) {
|
||||
return terminateConnection();
|
||||
}
|
||||
|
||||
return safeContextReject(SSHClient.ValidAuthMethods);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user