fix: 修复OAuth2绑定按钮逻辑错误

This commit is contained in:
王一之
2023-07-21 21:57:07 +08:00
parent 062d28b6e6
commit 358d33d60e
2 changed files with 2 additions and 2 deletions

View File

@@ -164,7 +164,7 @@
</div>
</div>
<div class="personal-edit-safe-item-right">
<el-button type="text" @click="bindOAuth2" :disabled="authStatus.bind">立即绑定</el-button>
<el-button type="text" @click="bindOAuth2" :disabled="authStatus.bind.oauth2">立即绑定</el-button>
</div>
</div>
</div>

View File

@@ -126,7 +126,7 @@ func (a *Auth) OAuth2Callback(rc *req.Ctx) {
}
// 不存在,进行注册
if !oauth.AutoRegister {
biz.ErrIsNil(errors.New("用户不存在,请先注册"), "用户不存在,请先注册")
biz.ErrIsNil(errors.New("未绑定账号, 请先注册"), "未绑定账号, 请先注册")
}
now := time.Now()
account := &entity.Account{