Bug fixes
- wtv-tricks:/unregister properly deletes SSID folder - Registration properly saves account data if SSID folder doesn't exist - do not send wtv-mail-count if SSID is not yet registered - Registration now correctly creates the welcome message for user0 - update wtv-tricks:/unregister to only allow the primary user to unregister the account
This commit is contained in:
@@ -8,6 +8,11 @@ if (!ssid_sessions[socket.ssid].getSessionData("registered")) {
|
||||
headers += "\nwtv-expire-all: wtv-";
|
||||
var redirect = [5, "client:relogin?"];
|
||||
var message = "Error: Your box is not registered. You are accessing " + minisrv_config.config.service_name + " in Guest Mode. There is nothing to delete!";
|
||||
} else if (ssid_sessions[socket.ssid].user_id !== 0) {
|
||||
headers += "\nwtv-noback-all: wtv-";
|
||||
headers += "\nwtv-expire-all: wtv-";
|
||||
var redirect = [5, "wtv-tricks:/tricks"];
|
||||
var message = "Error: You must be the primary user to unregister this box.";
|
||||
} else if (request_headers.query.confirm_unregister) {
|
||||
if (ssid_sessions[socket.ssid].unregisterBox()) {
|
||||
headers += "\nwtv-noback-all: wtv-";
|
||||
|
||||
Reference in New Issue
Block a user