From 43a87347b8bc81d7169d5dba44e23b7c9ffa55fb Mon Sep 17 00:00:00 2001 From: zefie Date: Tue, 5 May 2026 09:20:31 -0400 Subject: [PATCH] some more msntv2 updates --- .../ServiceVault/msntv2/passport/RST.srf.js | 2 - .../sg1/Register/Enter-Promotion-Code.aspx.js | 2 + .../Establish-your-MSN-TV-Account.html.js | 2 +- .../sg1/Register/Login-to-WebTV.aspx.js | 14 +++---- .../sg1/Register/Promotion-code.aspx.js | 13 +++++-- .../Register/Username-Not-Available.aspx.js | 2 +- .../msntv2/sg1/connection/GatePage.aspx.js | 39 ++++++++++++------- .../includes/classes/WTV-MSNTV2.js | 8 +++- 8 files changed, 51 insertions(+), 31 deletions(-) diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/passport/RST.srf.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/passport/RST.srf.js index acb31ee2..050442b0 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/passport/RST.srf.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/passport/RST.srf.js @@ -1,5 +1,3 @@ -const WTVClientSessionData = require("../../../classes/WTVClientSessionData"); - const minisrv_service_file = true; if (!session_data) { diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Enter-Promotion-Code.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Enter-Promotion-Code.aspx.js index 71ff3db3..d8fe4144 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Enter-Promotion-Code.aspx.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Enter-Promotion-Code.aspx.js @@ -53,6 +53,8 @@ data = `

Example:

ABCEAZ82KDKA

+

 

+

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 = ` Bullet - Yes, I have a Promotion Code. + Yes, I have a Promotion Code. (TODO) diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Username-Not-Available.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Username-Not-Available.aspx.js index 80be4677..08a3e3f8 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Username-Not-Available.aspx.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Username-Not-Available.aspx.js @@ -6,7 +6,7 @@ Content-type: text/html`; data = ` - Login to Passport + Username Not Available