0
0

Minor bug fixes, added URL link on redirect page.

This commit is contained in:
Bryan Pedini
2019-02-07 11:51:47 +01:00
parent 9e8f7ed464
commit 9210890eda
4 changed files with 17 additions and 11 deletions

View File

@@ -28,5 +28,5 @@ function urlinsert() {
xhr.send( data );
}
function logout ( ) {
window.location.href = "/?logout";
window.location.href = script_name+"?logout";
}

View File

@@ -10,7 +10,7 @@ function login() {
var response = xhr.responseText;
response = JSON.parse ( response );
if ( response [ 'status' ] == 200 ) {
window.location.href = "/";
window.location.href = script_name;
}
else {
document.getElementById ( "responsetext" ).innerHTML = response [ 'error_message' ];