aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-02-01 01:02:56 +0100
committerGitHub <noreply@github.com>2022-02-01 01:02:56 +0100
commit22d266350d2bddc70b369a0cf96278eebc8890ac (patch)
treeec1f64702c989d48fd3d200b3ffe8d89cc0d1cd2 /services
parent70e614b9da0916fa617d683c42a9394df552359a (diff)
downloadgitea-22d266350d2bddc70b369a0cf96278eebc8890ac.tar.gz
gitea-22d266350d2bddc70b369a0cf96278eebc8890ac.zip
Use `ImagedProvider` for gplus oauth2 provider (#18504)
Use `ImagedProvider` for gplus' oauthv2 provider, as the image isn't "gplus.png" but "google.png". Resolves #18494
Diffstat (limited to 'services')
-rw-r--r--services/auth/source/oauth2/providers_simple.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/auth/source/oauth2/providers_simple.go b/services/auth/source/oauth2/providers_simple.go
index 0f118b596d..39d3d74f6d 100644
--- a/services/auth/source/oauth2/providers_simple.go
+++ b/services/auth/source/oauth2/providers_simple.go
@@ -70,13 +70,13 @@ func init() {
}))
// named gplus due to legacy gplus -> google migration (Google killed Google+). This ensures old connections still work
- RegisterGothProvider(NewSimpleProvider("gplus", "Google", []string{"email"},
+ RegisterGothProvider(NewImagedProvider("/assets/img/auth/google.png", NewSimpleProvider("gplus", "Google", []string{"email"},
func(clientKey, secret, callbackURL string, scopes ...string) goth.Provider {
if setting.OAuth2Client.UpdateAvatar || setting.OAuth2Client.EnableAutoRegistration {
scopes = append(scopes, "profile")
}
return google.New(clientKey, secret, callbackURL, scopes...)
- }))
+ })))
RegisterGothProvider(NewSimpleProvider("twitter", "Twitter", nil,
func(clientKey, secret, callbackURL string, scopes ...string) goth.Provider {