mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-08 05:34:41 +02:00
Check bad usernames @ login
This commit is contained in:
parent
73e8b0454e
commit
06a1925288
3 changed files with 12 additions and 2 deletions
|
@ -114,6 +114,10 @@ function SSHClient(clientConn) {
|
|||
return handleSpecialError(err, username);
|
||||
}
|
||||
|
||||
if(Errors.BadLogin().code === err.code) {
|
||||
return terminateConnection();
|
||||
}
|
||||
|
||||
return safeContextReject(SSHClient.ValidAuthMethods);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue