somewhat guest login

This commit is contained in:
zefie
2026-05-02 10:15:24 -04:00
parent 4f20c08ed0
commit 92958e4c64
18 changed files with 155 additions and 281 deletions

View File

@@ -76,17 +76,16 @@ data = `<html xmlns:msntv>
<script>
var tvShell = new ActiveXObject("MSNTV.TVShell");
tvShell.UserManager.SetCurrentUserIsAuthorized(true);
tvShell.ConnectionManager.ServiceState = 'Authorized';
tvShell.UserManager.SetCurrentUserIsAuthorized(false);
function AddUser() {
var user = tvShell.UserManager.AddNew("${username}");
if (user) {
user.IsPersistent = false;
user.IsPersistent = true;
} else {
user = tvShell.UserManager.Item("${username}");
if (user && user.IsPersistent) {
if (user && !user.IsPersistent) {
user.IsPersistent = true;
}
}