lazyboywu / flarum-ext-auth-qq
Allow users to log in with QQ.
Installs: 167
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 1
Forks: 3
Open Issues: 1
Type:flarum-extension
Requires
- flarum/core: ^0.1.0-beta.3
- lazyboywu/oauth2-qq: ^0.1.0
This package is not auto-updated.
Last update: 2024-11-15 10:34:10 UTC
README
flarum 的 QQ Oauth 2.0 认证插件
安装
修改 flarum 根目录的 composer.json 中的 require,增加依赖
"lazyboywu/flarum-ext-auth-qq": "^0.1.0"
flarum 根目录通过 composer 进行插件安装
$ 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