user account updates

- move user accounts to subdir
- add password support
- implemented basics of multi-user support
- Can add users, edit them, and log in with them (password or not)
- Cannot delete users (with service) yet
This commit is contained in:
zefie
2022-02-07 20:24:16 -05:00
parent 622698ee66
commit 0d991d5eac
35 changed files with 2228 additions and 154 deletions

View File

@@ -15,6 +15,7 @@ if (wtvsec_login) {
headers = `200 OK
Connection: Keep-Alive
minisrv-use-carriage-return: false
minisrv-no-mail-count: true
wtv-initial-key: ` + wtvsec_login.challenge_key.toString(CryptoJS.enc.Base64) + `
Content-Type: text/tellyscript
wtv-service: reset

View File

@@ -10,6 +10,7 @@ if (request_headers["wtv-ticket"]) {
headers = `200 OK
Connection: Keep-Alive
minisrv-no-mail-count: true
wtv-expire-all: wtv-
wtv-open-isp-disabled: false
wtv-visit: `+ gourl + `

View File

@@ -150,6 +150,7 @@ if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
headers = "200 OK\n"
headers += "minisrv-no-mail-count: true\n";
if (bf0app_update) headers += "minisrv-use-carriage-return: false\n";
headers += "Connection: Keep-Alive\n";
headers += "wtv-initial-key: " + ssid_sessions[socket.ssid].data_store.wtvsec_login.challenge_key.toString(CryptoJS.enc.Base64) + "\n";

View File

@@ -1,7 +1,8 @@
var minisrv_service_file = true;
headers = `200 OK
Content-type: text/html`;
Content-type: text/html
minisrv-no-mail-count: true`;
data = `<html>
<head>
@@ -16,7 +17,7 @@ hspace=0 vspace=0 fontsize="large"
<table cellspacing=0 cellpadding=0^C>
<tr>
<td width=104 height=74 valign=middle align=center bgcolor="3B3A4D">
<img src="file://ROM/Cache/WebTVLogoJewel.gif" width=86 height=64>
<img src="${minisrv_config.config.service_logo}" width=86 height=64>
<td width=20 valign=top align=left bgcolor="3B3A4D">
<img src="ROMCache/Spacer.gif"
width=1 height=1>