edge-service/src/main/resources/ui/githubLoginCallback.html [65:81]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $.ajax({ type: 'POST', url: "/v1/token", data: formData, success: function (data) { console.log(JSON.stringify(data)); window.localStorage.setItem("token", JSON.stringify(data)); window.location = "/ui/operation.html"; }, error: function(data) { console.log(JSON.stringify(data)); var error = document.getElementById("error"); error.textContent="Login failed"; error.hidden=false; }, async: true }); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - edge-service/src/main/resources/ui/js/login.js [26:42]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $.ajax({ type: 'POST', url: "/v1/token", data: formData, success: function (data) { console.log(JSON.stringify(data)); window.localStorage.setItem("token", JSON.stringify(data)); window.location = "/ui/operation.html"; }, error: function(data) { console.log(JSON.stringify(data)); var error = document.getElementById("error"); error.textContent="Login failed"; error.hidden=false; }, async: true }); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -