fix: resolve conflicts for PR #14

This commit is contained in:
forumlify[bot] committed 2026-08-14 06:48:26 +00:00
commit 5314d60f53
30 files changed
+1755 -848

No files matched your search

+2 -10
View File
@@ -35,10 +35,10 @@ const API = {
return data;
},
async register(email, password, username) {
async register(email, password, username, bootstrapToken = '') {
const data = await apiFetch('/auth/register', {
method: 'POST',
body: JSON.stringify({ email, password, username })
body: JSON.stringify({ email, password, username, bootstrap_token: bootstrapToken || undefined })
});
if (data.error) throw new Error(data.error);
return data;
@@ -227,14 +227,6 @@ const API = {
return data;
},
async logEvent(action) {
try {
await apiFetch('/event-logs', {
method: 'POST',
body: JSON.stringify({ action })
});
} catch (e) { /* 静默失败 */ }
},
// ============================================================
// 论坛设置