lazyboywu/flarum-ext-auth-qq

允许用户使用 QQ 登录。

安装: 167

依赖项: 0

建议者: 0

安全: 0

星标: 12

关注者: 1

分支: 3

开放问题: 1

类型:flarum-extension

v0.1.1 2016-02-02 06:48 UTC

This package is not auto-updated.

Last update: 2024-09-20 09:48:46 UTC


README

flarum 的 QQ OAuth 2.0 认证插件

安装

修改 flarum 根目录的 composer.json 中的 require,增加依赖

"lazyboywu/flarum-ext-auth-qq": "^0.1.0"

通过 composer 在 flarum 根目录安装插件

$ composer update lazyboywu/oauth2-qq
$ composer update lazyboywu/flarum-ext-auth-qq

如果觉得 packagist 太慢,可以使用 github 和国内的镜像 phpcomposer 直接下载,composer.json 增加


"repositories": [ { "type": "vcs", "url": "https://github.com/lazyboywu/flarum-ext-auth-qq" }, { "type": "vcs", "url": "https://github.com/lazyboywu/oauth2-qq" }, { "type": "composer", "url": "http://packagist.phpcomposer.com" }, { "packagist": false } ]


后台启用插件,设置appid和appkey

因为需要记录 QQ 的 OpenId,修改数据库的 user 表, 在 flarum 根目录中执行

$ ./flarum migrate