fix(panel): refine reset password messages and fix empty email placeholder in mock api response

This commit is contained in:
Lemon-miaow committed 2026-07-04 09:40:14 +08:00
1 parent 2c95da8d63
commit 627883e89a
4 files changed
+16 -10

No files matched your search

+1 -1
View File
@@ -1045,7 +1045,7 @@ async function handleUserRoute(ctx: SessionContext): Promise<boolean> {
if (is("POST", ctx) && subAction === "reset-password") {
acc.mustChangePassword = true;
acc.updated_at = new Date().toISOString();
sendJSON(ctx.res, 200, { ok: true });
sendJSON(ctx.res, 200, { ok: true, email: acc.email || "" });
return true;
}