mirror of
https://github.com/certd/certd.git
synced 2026-07-09 06:07:37 +08:00
perf: 优化邀请注册流程
This commit is contained in:
@@ -26,13 +26,14 @@ export async function OauthToken(type: string, validationCode: string) {
|
||||
});
|
||||
}
|
||||
|
||||
export async function AutoRegister(type: string, code: string) {
|
||||
export async function AutoRegister(type: string, code: string, inviteCode?: string) {
|
||||
return await request({
|
||||
url: apiPrefix + `/autoRegister`,
|
||||
method: "post",
|
||||
data: {
|
||||
validationCode: code,
|
||||
type,
|
||||
inviteCode,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user