ruby-china / homeland

:circus_tent: An open source forum/community system based on Rails, developed based on Ruby China.
https://homeland.ruby-china.org
MIT License
3.8k stars 1.21k forks source link

微信登录报错 #1259

Open seabornlee opened 3 years ago

seabornlee commented 3 years ago

image

image

https://open.weixin.qq.com/connect/qrconnect?appid=wx25213fa2de2b1f50&redirect_uri=https%3A%2F%2Fwww.codingstyle.cn%2Faccount%2Fauth%2Fwechat%2Fcallback&response_type=code&scope=snsapi_base&state=e9c490096a211bd1853b11a5ca269efb110c5bea26e86501#wechat_redirect

把其中的scope 改成 snsapi_login 就可以成功显示二维码。

huacnlee commented 3 years ago

我没有微信开放平台的测试账号,审核流程太多,之前几个账号都被禁用了。

你能帮忙调试看看应该如何正确设置不,提个 PR

https://github.com/ruby-china/homeland/blob/main/config/initializers/devise.rb#L10