P4: 登录/注册/个人中心迁移(验证码 proof/邮箱验证/头像/改密)

This commit is contained in:
2026-08-06 22:48:48 +08:00
parent be6f644154
commit f4a5276fb8
7 changed files with 564 additions and 16 deletions
+11
View File
@@ -0,0 +1,11 @@
import { request } from './client.js';
/** 重新发送注册邮箱验证码(8 位数字,存入 pending_users */
export function sendVerify(email, username) {
return request('/email/send-verify', { method: 'POST', body: { email, username } });
}
/** 输入 8 位验证码完成注册:{ code, username, password } */
export function completeRegister(code, username, password) {
return request('/email/complete-register', { method: 'POST', body: { code, username, password } });
}