Server now responds with 401 when incorrect login (instead of 403)

This commit is contained in:
Carlos
2019-08-12 14:18:44 +02:00
parent 31686615f3
commit c691c2de0b
5 changed files with 239 additions and 39 deletions

View File

@ -6,7 +6,7 @@
*/
class WebConsoleManager {
constructor(){
this.activeConnections = [];
this.activeConnections = []; //Active Connectors list
}
/**
@ -20,6 +20,7 @@ class WebConsoleManager {
* Retrieve server by name
*/
getConnection(serverName){
var i;
for (i = 0; i < this.activeConnections.length; i++) {
if(this.activeConnections[i].serverName == serverName){
return this.activeConnections[i];