Do you have a Promotion Code? Please choose the answer below.
const minisrv_service_file = true; let email = request_headers.query.email || ''; if (Array.isArray(email)) email = email[0]; if (!email && request_headers.cookie) { const pm = request_headers.cookie.match(/(?:^|;\s*)register_email=([^;]*)/); if (pm) email = decodeURIComponent(pm[1]); } let password = request_headers.query.password || ''; if (Array.isArray(password)) password = password[0]; if (!password && request_headers.cookie) { const pm = request_headers.cookie.match(/(?:^|;\s*)register_password=([^;]*)/); if (pm) password = decodeURIComponent(pm[1]); } if (email && email.indexOf('@') < 0) email += "@"+minisrv_config.config.domain_name; let userAvail = false; if (email) { username = email.split('@')[0]; const wtvr = new WTVRegister(minisrv_config); userSane = wtvr.checkUsernameSanity(username); userAvail = wtvr.checkUsernameAvailable(username); setCookie('register_email', email, { path: '/' }); if (!userAvail || !userSane) { headers = `Status: 302 Found Location: https://sg1.trusted.msntv.msn.com/Register/Username-Not-Available.aspx`; data = ""; } } if (!password) { headers = `Status: 302 Found Location: https://sg1.trusted.msntv.msn.com/Register/Password-Required.aspx`; data = ""; } if (userAvail && password) { if (password) setCookie('register_password', password, { path: '/' }); headers = `Status: 200 OK Content-type: text/html`; data = `
Do you have a Promotion Code? Please choose the answer below.