mirror of
https://github.com/certd/certd.git
synced 2026-07-12 00:07:35 +08:00
chore(auth): 清理已使用的邀请码缓存
This commit is contained in:
@@ -100,7 +100,11 @@ async function goBindUser() {
|
||||
|
||||
async function autoRegister() {
|
||||
//自动注册账号
|
||||
const res = await api.AutoRegister(oauthType, bindCode.value, inviteUtils.get());
|
||||
const inviteCode = inviteUtils.get();
|
||||
const res = await api.AutoRegister(oauthType, bindCode.value, inviteCode);
|
||||
if (inviteCode) {
|
||||
inviteUtils.clear();
|
||||
}
|
||||
//登录成功
|
||||
userStore.onLoginSuccess(res);
|
||||
//跳转到首页
|
||||
|
||||
Reference in New Issue
Block a user