AmendHub

jcs

/

subtext

/

amendments

/

signup.c

Amendments on December 5, 2023


Amendments on November 28, 2023

*: Move views out of database to flat files

Remove half-baked view editor and cache file contents in memory.
Add a sysop menu option to reload them.
When opening the database, if the command key is held down, prevent
opening the last-opened database and prompt for a different one.
jcs made amendment 566 5 months ago

Amendments on March 2, 2023

signup: Handle malloc and user_save failure

jcs made amendment 346 about 1 year ago

Amendments on August 14, 2022

logger: Add buffered logging, support logging without updating window

During telnet negotiation, many lines are logged in quick succession
which means we spend a lot of time updating the log TextEdit. Just
buffer these logs and spit them out all at once upon login or
disconnection, so the user's login prompt is immediately responsive.
Rename session_log to session_logf while I'm in here, to reflect that
it's a format-string function.
jcs made amendment 245 about 1 year ago

Amendments on July 31, 2022

*: Add malloc annotations

jcs made amendment 226 about 1 year ago

Amendments on July 21, 2022

*: Use NewPtr instead of malloc, add malloc and free debugging

Instead of free(ptr), use xfree(&ptr) and after it calls
DisposePtr(ptr), it will update ptr to point at NULL to catch
use-after-frees.
When MALLOC_DEBUG is defined, each allocation is added to a
list, and removed when freed. If it's not in the list at free
time, it's a double-free. Also, instead of pointing pointers at
NULL, point them to a pre-defined block of zeroes and in the
idle loop, periodically check that this block is still zero. This
will also catch use-after-frees in a more reliable (but costly)
way.
jcs made amendment 220 about 1 year ago

Amendments on July 19, 2022

*: Add session signoff view, remove session_output_template

All remaining uses of session_output_template can use session_printf
which still does {{B}} and {{/B}} parsing.
Change session_output_view to session_output_view_or_printf to make it
easier to print a view and fallback to a string, rather than having to
check the result of session_output_view everywhere.
jcs made amendment 218 about 1 year ago

Amendments on July 12, 2022

signup: user_valid_username returns bool

jcs made amendment 192 about 1 year ago

Amendments on June 7, 2022

db: Fix IDs for views

jcs made amendment 126 about 1 year ago

sysop: Add user management

Also wire up new/signup login to direct there upon login, adding a
setting to the global config to allow it.
jcs made amendment 123 about 1 year ago

Amendments on June 3, 2022

user_settings: Support changing usernames

jcs made amendment 119 about 1 year ago

Amendments on June 2, 2022

*: Minor bug fixes, better NULL checks

jcs made amendment 114 about 1 year ago

Amendments on May 20, 2022

session_field_input: Add multiline support

Remove session_multiline_input since session_field_input just gets a
multiline flag. Also support backspacing at the beginning of a line
to jump back up to the end of the previous line.
jcs made amendment 103 over 2 years ago

Amendments on May 15, 2022

*: Lots of little cleanup

Remove unused variables and fix some returns
Found by compiling with Clang
jcs made amendment 101 over 2 years ago

Amendments on May 12, 2022

settings: Move to interactive text-based menu for sysops

This will allow remote administration and have a reusable component
for editing structs for users, boards, etc.
jcs made amendment 99 over 2 years ago

Amendments on April 26, 2022

session: Add session_log to log with a common prefix

jcs made amendment 96 over 2 years ago

Amendments on April 21, 2022

signup: Add interactive user account creation

jcs made amendment 95 over 2 years ago