feat: allow admins to bind member phone numbers

Members page previously only displayed phone status; add bind/replace UI and admin member update phone support for login and sync identity.
This commit is contained in:
whm
2026-08-05 14:41:27 +08:00
parent cb56e6847e
commit 3c9fe46359
4 changed files with 119 additions and 9 deletions

View File

@@ -1557,7 +1557,7 @@ export async function bindPhone(
export async function updateMember(
session: Session,
id: number,
body: { role?: string; org_unit_id?: number; status?: string }
body: { role?: string; org_unit_id?: number; status?: string; phone?: string }
) {
const res = await apiFetch(`/api/v1/admin/members/${id}`, {
method: "PUT",