Skip to content

Commit ae7e5e8

Browse files
Update plugin.rb
1 parent bdc7f70 commit ae7e5e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def register_middleware(omniauth)
116116
opts[:client_secret] = SiteSetting.oauth2_client_secret
117117
opts[:provider_ignores_state] = SiteSetting.oauth2_disable_csrf
118118
opts[:client_options] = {
119-
authorize_url: SiteSetting.oauth2_authorize_url,
119+
# authorize_url: SiteSetting.oauth2_authorize_url,
120+
authorize_url: @is_phone ? "https://open.weixin.qq.com/connect/oauth2/authorize" : "https://open.weixin.qq.com/connect/qrconnect",
120121
token_url: SiteSetting.oauth2_token_url,
121122
token_method: SiteSetting.oauth2_token_url_method.downcase.to_sym,
122123
}

0 commit comments

Comments
 (0)