Commit Graph

47 Commits

Author SHA1 Message Date
zefie
7bf2d2e6fa implement wtv-favorites with huge help from @JarHead4 2022-10-08 17:37:36 -04:00
zefie
ba13780ab6 fix ip verification functions 2022-10-07 21:28:54 -04:00
zefie
e0f070cdd7 more wtv-admin stuff 2022-10-07 20:46:30 -04:00
zefie
b2aece5437 incomplete NNTP usenet support 2022-09-25 22:52:18 -04:00
zefie
d8da9e14c7 Rewrite script processing a bit
- Instead of using eval() we now use a proper VM Context
- As a result, any scripting errors will now give a more useful filename and line number.
- However, some things may break, if they are dependant on variables we are not allowing in the context.
2022-09-25 18:05:45 -04:00
zefie
08c47586a7 generate subscriber_smtp_password on login-stage-two (for future use) 2022-09-24 23:32:05 -04:00
zefie
0fa54babfb implement remove-user functionality 2022-03-18 21:36:09 -04:00
zefie
e19d8892f8 test wildcard whitelist entries for http(s) proxy 2022-03-18 15:16:00 -04:00
zefie
d70cb5bf36 mostly fix bad-disk detection
- may still get bad-disk screen once after fixing disk
- may only be an issue if the user reconnects before the cleanup
2022-03-17 19:24:06 -04:00
zefie
2be8c66b01 Bug fixes
- wtv-tricks:/unregister properly deletes SSID folder
- Registration properly saves account data if SSID folder doesn't exist
- do not send wtv-mail-count if SSID is not yet registered
- Registration now correctly creates the welcome message for user0
- update wtv-tricks:/unregister to only allow the primary user to unregister the account
2022-03-12 15:14:32 -05:00
zefie
701cd25b83 implement function for account-wide unread mail count 2022-03-09 17:38:16 -05:00
zefie
f5044255af bleh 2022-03-09 17:38:15 -05:00
zefie
0a00e34537 fix login, probably break 5 other things 2022-03-09 17:38:14 -05:00
zefie
2a526c0702 initial attempt to fix security issue
- likely adds new bug where users will be kicked to relogin after the
  server restarts
- TODO: figure out a way to safely check the user login when session
  data is unknown (eg restart) (hint: ticket?)
2022-03-09 17:38:14 -05:00
zefie
59ba999b5a fix null user bug, but also make a page to intentionally trigger it 2022-03-09 17:38:13 -05:00
zefie
123c8f7823 even more mail stuff 2022-03-09 17:38:09 -05:00
zefie
955f21039c even more fixes 2022-03-09 17:38:08 -05:00
zefie
4d8bc314b4 more fixes 2022-03-09 17:38:07 -05:00
zefie
af34d66488 hopefully fix things this time 2022-03-09 17:38:07 -05:00
zefie
bf7369431e add wtv-ticket store api
- fix broken session bust crap from before
- properly resume session as user when server restarted
- api available to store other things in the wtv-ticket
2022-03-09 17:38:07 -05:00
zefie
433fc3db19 more patches to previous updates
- fixed getUnreadMailCount
- added unread mail count to login screen
- added session busted detection (new bug that when you restart minisrv it loses the user_id, so we send the client to relog) (todo: maybe add api to add key/value to ticket so we can retain data over server restarts)
2022-03-09 17:38:06 -05:00
zefie
0d991d5eac 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
2022-03-09 17:37:57 -05:00
zefie
622698ee66 attempt to fix: bad disk units are perpetually banned 2022-02-06 11:34:55 -05:00
zefie
ed30bf05cc Update getManufacturer() to show "RCA" for "Thomson" in non-url mode. 2022-01-17 15:40:30 -05:00
zefie
ec329750fb Add getManufacturer() function
- Thanks to u/JarHead4
2022-01-17 15:37:19 -05:00
zefie
ee76fd5190 more mail stuff
- todo: alot, but mainly track new/read and get local working
2021-11-15 00:51:31 -05:00
zefie
a088ea1e42 initial work on wtv-mail system:
- WTVMail Class
- MailStore functions
- Can show user mail intro page (see home.js for link example)
- Create initial welcome email (poop for now) when creating mailstore
- Can list Inbox
- no sending yet
- no reading yet
- no receiving yet
2021-11-13 02:41:30 -05:00
zefie
3da57455eb re-write security system to be more like WNI
- can get telly and reach stage-two
- narrow whitelist of allowed URLS in WTVClientSessionData constructor
- enough to show wtv-1800:/unauthorized with trust priv
- Times out lockeddown users really fast ;)
- untested disk error page
2021-11-12 15:35:40 -05:00
zefie
2130db4abe wtv-setup + bgmusic
- wtv-setup pages thanks to https://github.com/JarHead4
- wtv-backgroundmusic support
- keyboard and text size settings support
- removed small midi music demo in favor of backgroundmusic system
- version v0.9.23
2021-11-08 22:09:18 -05:00
zefie
2d7a540796 code cleanup 2021-11-02 16:46:41 -04:00
zefie
1910ded10a delete user file store when unregistering 2021-08-11 01:27:39 -04:00
zefie
95442a12af lots more stuff
- proper gzip download for disk system (aka WNI reinventing the Content-Encoding: gzip wheel)
- send Last-Modified for static files
- send wtv-checksum for all disk system downloads
- other fixes
2021-08-11 01:11:09 -04:00
zefie
3dd6e51832 hopefully fix POST for real
- main function still could use a rewrite
- more class branching and moving of functions
- Pass minisrv_config to classes
2021-08-10 21:41:34 -04:00
zefie
7e8e9208e0 add registration checks to file store 2021-08-10 18:41:37 -04:00
zefie
e9c883d85a too much to remember
- rewrote sync system yet again
- more classes
    - WTVShared class for shared functions
    - clientShowAlert class for easy client:showalert urls
- User File Store
    - Can upload with PUT commands in wtv-disk
    - Programmically access files with new functions in WTVClientSessionData
    - TODO: file browser
- other stuff I can't remember
2021-08-10 18:30:59 -04:00
zefie
ce7f6259b8 fix: new user registration did not save 2021-08-10 10:00:00 -04:00
zefie
1e0fd20ae6 guest mode session store update
- allow calls to saveSessionData() but do not actually write if user is guest
- saveSessionData() returns true even if guest, because false is meant to define an error
- You can also use SaveIfRegistered(), this will return false on both saveSessionData() errors AND guest mode;
- if you want to block guests, check for isRegistered() and block the request if it is false
- otherwise this update will allow all tools (including any logins) to work with guest mode, but the stored SessionData will not be persistently saved, and lost when the cleanup timeout hits (default 3 min), or the server is restarted.
2021-08-09 14:39:11 -04:00
zefie
e99a9a5e51 missed a this 2021-08-09 10:08:16 -04:00
zefie
e917132437 fix f0861e2f21 2021-08-08 21:47:42 -04:00
zefie
f0861e2f21 improve session retention 2021-08-08 19:54:29 -04:00
zefie
da37682a03 v0.9.13
- wtv-cookie support
- further development will be in dev branch (may rebase alot)
- compression not yet ready, leave it disabled
2021-08-08 18:11:33 -04:00
zefie
2b36ace012 update wtv-tricks system
- Info now shows Guest Mode or Subscriber Info
- Implemented wtv-tricks:/unregister
- Implemented wtv-tricks:/register
- Show correct link in wtv-tricks:/tricks based on Guest Mode status
2021-08-07 20:16:54 -04:00
zefie
f15f377f8e v0.9.12 - WILL REBASE - BE WARNED
- convert post_data to query if valid query data
- wtv-register system
- Store Session data as JSON flat file
- wtv-cookie support
- spent way too much time on a page no one will read
- move filterSSID to WTVClientSessionData
- disable compression until fixed
- do not delete WTVSec on last socket, instead recreate on prereg
- set 'wtv-bypass-proxy' to false
- rework header whitelist system for HTTP(s) proxy
- clean up SSID session data only if client is not seen for 3 minutes
- add shouldWeCompress() function
- add additional headers to wtv-setup:/get
- add initial blank wtv-music:/get-playlist
2021-08-07 17:00:26 -04:00
zefie
012c0114e1 update: add 'setIRCNick()' function to WTVClientSessionData for ease of use
update: add primative getMaxUsernameLength() to overcome username limitation in older builds
update: wtv-chat:/home template
2021-07-26 07:15:21 -04:00
zefie
7826891070 update: add isMiniBrowser() to WTVClientSessionData for easier detection of MiniBrowser. 2021-07-26 06:18:03 -04:00
zefie
41b4deb831 update: add 'hasCap(flag)' function to WTVClientSessionData for easier client-capabilities checking (see wtv-home/home.js for an example) 2021-07-26 06:12:53 -04:00
zefie
a5806e8581 v0.9.6
- update: add initial wtv-capability-flags decoding, as well as wtv-tricks:/info demonstration
- update: rename classes
- minor update: quirky 'Special Thanks' in each custom class.
- minor update: notice about Initial Shared Key and multiple minisrvs
- update: wtv-music:/demo/index: update wtv-star image paths
- update: app.js: fix unencrypted post
- update: app.js: improve buffering and cleanup in attempt to fix occasional 'double-up' bug
- update: info.js: remove debug dump of capabilities
- Update: add test.js, syntax-testing script for `npm test`
- Update: wtv-chat:/home experimental nick change page thanks to MattMan (chat still giving issues on real boxes, works in Viewer)
- Update: README.md: Add ways to support the project
2021-07-25 08:56:52 -04:00