This commit is contained in:
戴育兵 2025-12-15 14:39:48 +08:00
parent 759e8384dd
commit 731f4bdd91

View File

@ -284,7 +284,6 @@ func OAuth2Callback(ctx *gin.Context) {
_, err := service.CastProvider.OAuthCodeToToken(ctx, req)
if err != nil {
zap.L().Info("OAuth2Callback error", zap.Error(err))
ctx.Redirect(http.StatusFound, fmt.Sprintf("%s?%s", config.AppConfig.System.AuthRedirectUrl, "status=1"))
return
}