One day, certain promotion codes will unlock special features or content on minisrv. But for now, this is just a placeholder page.
diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Login-to-WebTV.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Login-to-WebTV.aspx.js
index 30de6ca3..bdc42523 100644
--- a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Login-to-WebTV.aspx.js
+++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Login-to-WebTV.aspx.js
@@ -4,7 +4,7 @@ headers = `Status: 200 OK
Content-type: text/html`;
data = `
-
+
Learning to use the keyboard
@@ -44,16 +44,12 @@ data = `
- If you don't have an existing minisrv account, select the Back Button.
- If you reset your box, you can recover your existing account by entering the username and password.
- If you intend to use an account that is already established on your WebTV, type in the username and password for that account.
- If you do not have a password set on your primary user account, you will need to set one up on your WebTV before you can log in here. After entering your username and password, select the Continue Button.
+ If you do not have a password set on your primary user account, you will need to set one up on your WebTV before you can connect it to this MSNTV2.
+ After entering your username and password, select the Continue Button.
-
-
+
+
`;
diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Promotion-code.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Promotion-code.aspx.js
index 2edea3e9..6e8913f4 100644
--- a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Promotion-code.aspx.js
+++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Promotion-code.aspx.js
@@ -1,6 +1,9 @@
const minisrv_service_file = true;
-
+// TODO: if the user hits back, and removes the password from the user/pass page, any previously entered password
+// will still be in the cookie and they will skip the password page.
+// We should probably clear the password cookie when they hit back from the password page, but how?
+// We can't assume password = '' means they hit back, because some pages will not send it.
let email = request_headers.query.email || '';
if (Array.isArray(email)) email = email[0];
if (!email && request_headers.cookie) {
@@ -31,14 +34,16 @@ data = "";
}
}
-if (!password) {
+if (!password && !headers) {
headers = `Status: 302 Found
Location: https://sg1.trusted.msntv.msn.com/Register/Password-Required.aspx`;
data = "";
+ deleteCookie('register_password', { path: '/' });
+} else {
+ setCookie('register_password', password, { path: '/' });
}
if (userAvail && password) {
-if (password) setCookie('register_password', password, { path: '/' });
headers = `Status: 200 OK
Content-type: text/html`;
@@ -75,7 +80,7 @@ data = `