From ef9ee34b9210f665cc62129d095019fe2781c43a Mon Sep 17 00:00:00 2001 From: Althen Lim Zi Xuan Date: Tue, 15 Oct 2024 10:25:57 +0800 Subject: [PATCH] [Patch] Include defined language in wechat's BeginAuth method --- providers/wechat/wechat.go | 1 + 1 file changed, 1 insertion(+) diff --git a/providers/wechat/wechat.go b/providers/wechat/wechat.go index 416b5eb04..526e8fe4b 100644 --- a/providers/wechat/wechat.go +++ b/providers/wechat/wechat.go @@ -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()), }