[www] reset dorm button for 2023

This commit is contained in:
Devin Zuczek
2026-10-14 10:42:36 -04:00
parent 94b106c12f
commit 9902de39a4
5 changed files with 208 additions and 1 deletions
+3
View File
@@ -43,6 +43,7 @@ import {
addUsernameChangeHandler,
banReportHandler,
bansInForceHandler,
clearDormHandler,
clearPasswordHandler,
createReportHandler,
getReportHandler,
@@ -610,6 +611,8 @@ const app = new Hono<App>()
.post('/api/staff/players/:id/grant-plus', requireDeveloper, grantPlusHandler)
.post('/api/staff/players/:id/username-changes', addUsernameChangeHandler)
.post('/api/staff/players/:id/clear-password', clearPasswordHandler)
// Blanks the dorm's newest save so a player can go back to the 2023 client.
.post('/api/staff/players/:id/clear-dorm', clearDormHandler)
// The signed-in staff member's OWN sandbox flag: read it, and opt in or out. Self-only,
// so plain staff (not developer-only) — it moves nobody but the caller, and `match`
// honours it on their next room join.