Skip to content

Commit ebcf1a4

Browse files
GustedStelios Malathouras
Gusted
authored and
Stelios Malathouras
committed
Use ImagedProvider for gplus oauth2 provider (go-gitea#18504)
Use `ImagedProvider` for gplus' oauthv2 provider, as the image isn't "gplus.png" but "google.png". Resolves go-gitea#18494
1 parent 45c47a9 commit ebcf1a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/auth/source/oauth2/providers_simple.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ func init() {
7070
}))
7171

7272
// named gplus due to legacy gplus -> google migration (Google killed Google+). This ensures old connections still work
73-
RegisterGothProvider(NewSimpleProvider("gplus", "Google", []string{"email"},
73+
RegisterGothProvider(NewImagedProvider("/assets/img/auth/google.png", NewSimpleProvider("gplus", "Google", []string{"email"},
7474
func(clientKey, secret, callbackURL string, scopes ...string) goth.Provider {
7575
if setting.OAuth2Client.UpdateAvatar || setting.OAuth2Client.EnableAutoRegistration {
7676
scopes = append(scopes, "profile")
7777
}
7878
return google.New(clientKey, secret, callbackURL, scopes...)
79-
}))
79+
})))
8080

8181
RegisterGothProvider(NewSimpleProvider("twitter", "Twitter", nil,
8282
func(clientKey, secret, callbackURL string, scopes ...string) goth.Provider {

0 commit comments

Comments
 (0)