Login Plugin: WeChat Login Plugin/ 微信登陆插件

https://github.com/mooosu/wechat_qrconnect


Authenticate with discourse with wechat qrconnect.

通过 微信二维码 互联登陆 Discourse。

为高效运维论坛编写

论坛地址: http://discuss.greatops.net/

Register website application / 创建网站应用

  1. 登录 Wechat QRconnect,注册填写相关信息。
  2. 进入管理中心,点击网站应用,点击创建网站应用
  3. 根据向导完成注册。

Note:
目前微信只受理公司申请,也即需要提供有营业执照等

Installation / 安装

与Discourse同步安装

app.yml

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git

- git clone https://github.com/discourse/docker_manager.git 后添加:

- git clone https://github.com/mooosu/wechat_qrconnect

或者对于已经部署过的系统可以使用下面命令

rake plugin:install repo=https://github.com/mooosu/wechat_qrconnect.git
rake assets:precompile

重启Rails。

Usage / 使用

Go to Site Settings’s login category, fill in the client id and client secret.

进入站点设置的登录分类,填写 client id 和 client serect。

12 Likes

你好,我在版本1.6.0.beta4上上面安装之后,在设置的登录分类里面找不到相应的设置项目,怎么治?

不好意思,自己解决了

Hi:

I see that your website enable QQ login function, clould you opensource that?

Thanks very much.

Dear mooosu
when i login with the Qrconnect, it will to creat a new account, and it will login success
My problem is i have already have registed account with email, how to Associated the weixin and discourse Accounts.
can tell me how to change this plugin.

请问这里的client id 和 client secret是啥, 开发者账号?