mirror of
https://github.com/certd/certd.git
synced 2026-05-15 04:27:31 +08:00
perf: 支持OIDC单点登录
This commit is contained in:
@@ -53,8 +53,13 @@ async function handleOauthToken() {
|
||||
}
|
||||
if (res.bindRequired) {
|
||||
//需要绑定
|
||||
bindRequired.value = true;
|
||||
bindCode.value = res.validationCode;
|
||||
//如果开启了自动注册,默认自动注册账号
|
||||
if (settingStore.sysPublic.registerEnabled) {
|
||||
autoRegister();
|
||||
} else {
|
||||
bindRequired.value = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +69,7 @@ onMounted(async () => {
|
||||
}
|
||||
|
||||
if (forType === "bind") {
|
||||
//绑定第三方账号
|
||||
//从用户中心页面,进行第三方账号的绑定
|
||||
await api.BindUser(validationCode);
|
||||
notification.success({
|
||||
message: "绑定成功",
|
||||
|
||||
Reference in New Issue
Block a user