Skip to content

Commit

Permalink
Merge pull request #131 from hemanthghattamaneni/master
Browse files Browse the repository at this point in the history
Change the alert message when login is failed
  • Loading branch information
ZihengSun authored Mar 22, 2021
2 parents 7a327ae + 0449ad6 commit e6e1c82
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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}"
}
]
}
8 changes: 4 additions & 4 deletions src/main/resources/static/js/gw.host.js
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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);

Expand Down Expand Up @@ -737,15 +737,15 @@ 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);

}

}).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);
Expand Down

0 comments on commit e6e1c82

Please sign in to comment.