diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-30 23:10:53 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-30 23:10:53 +0300 |
| commit | 6c3a65b577f002f3219d03498c66205434765179 (patch) | |
| tree | c2d0b1219c7b23d43019bc3c6222a857652160ef /yhttpd/src/main.cpp | |
| parent | 6cac7b461c8ffed5c995b86367ce67665aa95ee5 (diff) | |
No-DB build: hide/remove the Options menu (build-aware)
The Options menu (options.html + yc_options) manages the user's email and
password - account settings that only persist with a database. Without one
the menu is non-persistent and misleading (a guest who sets a password can't
log back in after being garbage-collected, since the recycled-user login
checks the password). Make it build-aware (#ifdef DATABASE):
- html/input.html: the Options link is now %%OPTIONS_LINK%%.
- src/reqp.cpp: set map_params[OPTIONS_LINK] to the link (built with the
session tmpid) under #ifdef DATABASE, else empty. So a DB build keeps the
Options link; the no-DB build hides it.
- Dockerfile (no-DB build): drop options.html and yc_options.so from the
image (the popup form and the options module are gone; an on-demand
get_module for the options event fails gracefully -> no-op).
Verified (no-DB): the input frame no longer shows an Options link (Colors,
Help, Users, Logout remain); options.html -> 'Page not found';
yc_options.so absent; normal chat still works.
Diffstat (limited to 'yhttpd/src/main.cpp')
0 files changed, 0 insertions, 0 deletions
