lejianwen месяцев назад: 4
Родитель
Сommit
929f6ddf20
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      http/controller/api/ouath.go

+ 2 - 1
http/controller/api/ouath.go

@@ -80,7 +80,8 @@ func (o *Oauth) OidcAuthQueryPre(c *gin.Context) (*model.User, *model.UserToken)
80
 
80
 
81
 	// 如果 UserId 为 0,说明还在授权中
81
 	// 如果 UserId 为 0,说明还在授权中
82
 	if v.UserId == 0 {
82
 	if v.UserId == 0 {
83
-		c.JSON(http.StatusOK, gin.H{"message": "Authorization in progress, please login and bind"})
83
+		//fix: 1.4.2 webclient oidc
84
+		c.JSON(http.StatusOK, gin.H{"message": "Authorization in progress, please login and bind", "error": "No authed oidc is found"})
84
 		return nil, nil
85
 		return nil, nil
85
 	}
86
 	}
86
 
87