From 0449ad647d60431791457fa7afc4b72d0aaa0475 Mon Sep 17 00:00:00 2001 From: Hemanth Ghattamaneni Date: Mon, 22 Mar 2021 15:46:04 -0400 Subject: [PATCH] Change the alert message when login is failed --- .vscode/launch.json | 22 ++++++++++++++++++++++ src/main/resources/static/js/gw.host.js | 8 ++++---- 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..11f9473de --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "java", + "name": "Launch GeoweaverApplication", + "request": "launch", + "mainClass": "com.gw.GeoweaverApplication", + "projectName": "geoweaver" + }, + { + "type": "pwa-chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/static/js/gw.host.js b/src/main/resources/static/js/gw.host.js index 9ffd28d5b..f0fa238e5 100644 --- a/src/main/resources/static/js/gw.host.js +++ b/src/main/resources/static/js/gw.host.js @@ -659,7 +659,7 @@ GW.host = { }else{ - alert("Fail to open SSH session"); + alert("Username or Password is wrong or the server is not accessible"); } try{ @@ -669,7 +669,7 @@ GW.host = { }).fail(function(status){ - alert("Fail to open SSH session" + status); + alert("Username or Password is wrong or the server is not accessible" + status); $("#ssh-connect-btn").prop("disabled", false); @@ -737,7 +737,7 @@ GW.host = { }else{ - alert("Fail to open SSH session"); + alert("Username or Password is wrong or the server is not accessible"); GW.host.setCache(hostid, null); @@ -745,7 +745,7 @@ GW.host = { }).fail(function(status){ - alert("Fail to open SSH session" + status); + alert("Username or Password is wrong or the server is not accessible" + status); GW.host.setCache(hostid, null); //$("#ssh-connect-btn").prop("disabled", false);