Skip to content

Commit 483bda4

Browse files
Gusted6543
Gusted
andauthored
Use ImagedProvider for gplus oauth2 provider (go-gitea#18504) (go-gitea#18505)
- Bacport of go-gitea#18504 Co-authored-by: 6543 <[email protected]>
1 parent edd5702 commit 483bda4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/auth/source/oauth2/providers_simple.go

+2-3
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 {
@@ -107,5 +107,4 @@ func init() {
107107
return microsoftonline.New(clientID, secret, callbackURL, scopes...)
108108
},
109109
))
110-
111110
}

0 commit comments

Comments
 (0)