fun with alpha
This commit is contained in:
@@ -86,7 +86,7 @@ minisrv-no-mail-count: true
|
||||
Content-Type: text/html`;
|
||||
if (client_challenge_response) {
|
||||
headers += `
|
||||
wtv-encrypted: true`;
|
||||
wtv-encrypted: ${(request_headers['wtv-encrypted']) ? wtvshared.parseBool(request_headers['wtv-encrypted']) : true}`;
|
||||
if (wtvsec_login) session_data.data_store.wtvsec_login.update_ticket = true;
|
||||
}
|
||||
if (limitedLoginRegistered && session_data.getUserPasswordEnabled()) gourl = "wtv-head-waiter:/password?";
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
var minisrv_service_file = true;
|
||||
var gourl = null;
|
||||
|
||||
var bootrom = parseInt(session_data.get("wtv-client-bootrom-version"));
|
||||
|
||||
if (!session_data.isRegistered() && (!request_headers.query.guest_login || !minisrv_config.config.allow_guests)) gourl = "wtv-register:/splash?";
|
||||
var home_url = "wtv-home:/home?";
|
||||
|
||||
if (gourl) {
|
||||
headers = `200 OK
|
||||
wtv-open-isp-disabled: false
|
||||
`;
|
||||
headers = "200 OK\n";
|
||||
if (bootrom !== 0) headers += "wtv-open-isp-disabled: false\n";
|
||||
|
||||
if (!session_data.isRegistered() && (!request_headers.query.guest_login || !minisrv_config.config.allow_guests)) {
|
||||
// fake logged in for reg
|
||||
session_data.setUserLoggedIn(true);
|
||||
headers += `wtv-encrypted: true
|
||||
headers += `wtv-encrypted: ${(request_headers['wtv-encrypted']) ? wtvshared.parseBool(request_headers['wtv-encrypted']) : true}
|
||||
${getServiceString('wtv-register')}
|
||||
${getServiceString('wtv-head-waiter')}
|
||||
${getServiceString('wtv-star')}
|
||||
@@ -175,11 +177,11 @@ wtv-inactive-timeout: 1440
|
||||
wtv-show-time-enabled: true
|
||||
wtv-allow-dsc: true
|
||||
wtv-tourist-enabled: true
|
||||
wtv-open-isp-disabled: false
|
||||
wtv-offline-mail-enable: false
|
||||
wtv-demo-mode: 0
|
||||
wtv-wink-deferrer-retries: 3
|
||||
wtv-name-server: 8.8.8.8`;
|
||||
if (bootrom !== 0) { headers += "\nwtv-open-isp-disabled: false" }
|
||||
}
|
||||
}
|
||||
if (!request_headers.query.reconnect) headers += "\nwtv-visit: " + gourl;
|
||||
|
||||
@@ -9,7 +9,8 @@ if (request_headers.query.relogin) gourl += "relogin=true";
|
||||
else if (request_headers.query.reconnect) gourl += "reconnect=true";
|
||||
else gourl += "initial_login=true"
|
||||
|
||||
if (request_headers.query.guest_login) {
|
||||
var bootrom = parseInt(session_data.get("wtv-client-bootrom-version"));
|
||||
if (request_headers.query.guest_login || bootrom === 0) {
|
||||
if (gourl.substr(-1) != "?") gourl += "&";
|
||||
gourl += "guest_login=true";
|
||||
if (request_headers.query.skip_splash) gourl += "&skip_splash=true";
|
||||
|
||||
Reference in New Issue
Block a user