Danger zone
ADMIN_KEY
environment variable — it's sent only in request headers and never stored anywhere by this page.
SLACK_WEBHOOK_URL and/or TELEGRAM_BOT_TOKEN +
TELEGRAM_CHAT_ID on the server (set them in .env or the environment,
then restart). When set, a message is sent automatically to every configured channel the moment
each attendance slot closes, listing which students in each class weren't marked present.
Nothing to configure here on this page — this button just sends a test message so you can confirm
the webhook URL / bot token / chat ID actually work.
DPS-10A-001. Codes should be short and unique.
Permanently removes every face embedding from MongoDB and clears the server's in-memory
recognition cache. Students and their attendance history in MySQL are not
affected — but nobody will be recognized by /upload until they're re-enrolled
with a new photo on the register page.
Permanently removes every row from the MySQL attendance_marks table — every
scan, present/absent record, and off-slot log, for every date. Students and face embeddings
are not affected.
Permanently removes every row from the MySQL students table and resets the
per-school/class ID sequence counters, so future registrations start their school/class sequence again at -001
instead of continuing from where deleted students left off. Face embeddings and attendance
rows are not deleted by this action — if you want a full reset, also run
the two actions above. Deleted students' old attendance rows will stop showing on the
dashboard (it's built from a join against this table), and any of their face embeddings
left in Mongo will still "recognize" but mark attendance against a student that no longer
exists.