Skip to content

Commit

Permalink
fix: 修复OAuth2绑定按钮逻辑错误
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Jul 21, 2023
1 parent 062d28b commit 358d33d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mayfly_go_web/src/views/personal/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion server/internal/sys/api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 358d33d

Please sign in to comment.