mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 15:30:25 +08:00
fix: 修复OAuth2绑定按钮逻辑错误
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user