Minor bug fixes, added URL link on redirect page.

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

No files matched your search

+1 -1
View File
@@ -28,5 +28,5 @@ function urlinsert() {
xhr.send( data );
}
function logout ( ) {
window.location.href = "/?logout";
window.location.href = script_name+"?logout";
}
+1 -1
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' ];