Skip to content

Commit

Permalink
[Patch] Include defined language in wechat's BeginAuth method
Browse files Browse the repository at this point in the history
  • Loading branch information
althenlimzixuan committed Oct 15, 2024
1 parent 3b7cc68 commit ef9ee34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/wechat/wechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func (p *Provider) BeginAuth(state string) (goth.Session, error) {
params.Add("state", state)
params.Add("scope", ScopeSnsapiLogin)
params.Add("redirect_uri", p.RedirectURL)
params.Add("lang", string(p.Lang))
session := &Session{
AuthURL: fmt.Sprintf("%s?%s", p.AuthURL, params.Encode()),
}
Expand Down

0 comments on commit ef9ee34

Please sign in to comment.