1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-13 14:07:20 +00:00

Improve oauth2 error handling (#33969)

Show the callback error to end users, it should be safe.
Fix #33967
This commit is contained in:
wxiaoguang
2025-03-22 10:15:45 +08:00
committed by GitHub
parent 1c5c13a442
commit e1bba9c1a2
4 changed files with 32 additions and 18 deletions

View File

@ -19,7 +19,7 @@ import (
"code.gitea.io/gitea/modules/json"
"code.gitea.io/gitea/modules/setting"
api "code.gitea.io/gitea/modules/structs"
oauth2_provider "code.gitea.io/gitea/services/oauth2_provider"
"code.gitea.io/gitea/services/oauth2_provider"
"code.gitea.io/gitea/tests"
"github.com/stretchr/testify/assert"