This commit is contained in:
zefie
2021-08-08 13:50:57 -04:00
parent 847a4f053b
commit 9f102be02f
2 changed files with 9 additions and 6 deletions

View File

@@ -11,9 +11,9 @@ wtv-expire-all: wtv-
wtv-relogin-url: wtv-1800:/preregister?relogin=true wtv-relogin-url: wtv-1800:/preregister?relogin=true
wtv-reconnect-url: wtv-1800:/preregister?reconnect=true wtv-reconnect-url: wtv-1800:/preregister?reconnect=true
wtv-boot-url: wtv-1800:/preregister?relogin=true`; wtv-boot-url: wtv-1800:/preregister?relogin=true`;
var message = `You will now be be redirected to registration.<br><a href="${redirect[1]}">Click here if you are not automatically redirected.</a>`;
var redirect = [3, "client:relog?"]; var redirect = [3, "client:relog?"];
var message = "You will now be be redirected to registration.<br><br>";
message += `<a href="${redirect[1]}">Click here if you are not automatically redirected.</a>`;
} else { } else {
message = `Are you ready to register your box with ${minisrv_config.config.service_name}? message = `Are you ready to register your box with ${minisrv_config.config.service_name}?
<br><br> <br><br>

View File

@@ -8,11 +8,14 @@ if (!ssid_sessions[socket.ssid].getSessionData("registered")) {
if (ssid_sessions[socket.ssid].unregisterBox()) { if (ssid_sessions[socket.ssid].unregisterBox()) {
headers += "\nwtv-noback-all: wtv-"; headers += "\nwtv-noback-all: wtv-";
headers += "\nwtv-expire-all: wtv-"; headers += "\nwtv-expire-all: wtv-";
var message = `Your account data has been successfully removed. You will now be be redirected to registration.<br><a href="${redirect[1]}">Click here if you are not automatically redirected.</a>`;
var redirect = [3, "client:relog?"]; var redirect = [3, "client:relog?"];
var message = "Your account data has been successfully removed. You will now be be redirected to registration.<br><br>";
message += `<a href="${redirect[1]}">Click here if you are not automatically redirected.</a>`;
} else { } else {
var message = "There was an error deleting your account data. Please try again later. If the problem persists, please contact " + minisrv_config.config.service_owner + " to request manual deletion. SSID verifcation may be required to perform a manual deletion.<br><br>Returning from whence you came...";
var redirect = [10, "client:goback?"]; var redirect = [10, "client:goback?"];
var message = "There was an error deleting your account data. Please try again later. If the problem persists, please contact " + minisrv_config.config.service_owner + " to request manual deletion.";
message += "SSID verifcation may be required to perform a manual deletion.< br > <br>Returning from whence you came...<br><br>";
message += `<a href="${redirect[1]}">Click here if you are not automatically redirected.</a>`;
} }
} else { } else {
message = `Are you sure you wish to unregister your account? Session Data deleted by this tool is unrecoverable, even by ${minisrv_config.config.service_owner}. message = `Are you sure you wish to unregister your account? Session Data deleted by this tool is unrecoverable, even by ${minisrv_config.config.service_owner}.