Login Plugin: WeChat 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。

14개의 좋아요

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

不好意思,自己解决了

Hi:

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

Thanks very much.

mooosu님,
QR코드로 로그인하면 새 계정이 생성되고 로그인에 성공합니다.
제 문제는 이미 이메일로 가입한 계정이 있는데, 위챗(WeChat)과 디스코urs(Discourse) 계정을 어떻게 연결해야 하는지 모르겠다는 것입니다.
이 플러그인을 어떻게 수정해야 하는지 알려 주실 수 있나요?

여기서 client ID와 client secret은 무엇인가요? 개발자 계정인가요?

QQ 로그인 플러그인이 있나요?