Fix gitea login (#3533)

Closes #3531
This commit is contained in:
qwerty287 2024-03-21 19:18:22 +01:00 committed by GitHub
parent fbdfa14a00
commit 6abc112262
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,7 +71,7 @@ type Opts struct {
// New returns a Forge implementation that integrates with Gitea,
// an open source Git service written in Go. See https://gitea.io/
func New(opts Opts) (forge.Forge, error) {
if opts.OAuth2URL != "" {
if opts.OAuth2URL == "" {
opts.OAuth2URL = opts.URL
}