QuickAuthLogin-WP/README.md

84 lines
2.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

![](https://cdn.wixy.cn/blog-picture/WordPress-logotype-alternative.png)
# QuickAuthLogin-WP
基于[QuickAuth](https://qauth.cn)扫码登录平台开发的WordPress微信扫码登录插件
### 更新记录
#### 2022/04/27 v0.9.3
新增全局注入登录框调用方法openLogin()可自定义登录按钮调出微信扫码登录界面只需要在按钮添加onclick事件调用openLogin()方法就可以了
例如
```
<button onclick="openLogin();">微信登陆</button>
```
#### 2022/03/31 v0.9.2
1. 支持QuickAuth平台测试功能可测试插件是否安装成功
2. 更新接入教程
## 起始
本插件是基于 QuickAuth 开发的 插件,使用前需要进入[QuickAuth平台](https://qauth.cn)注册配置自己的应用
如需修改插件或开发自己的接入项目,请参考 [QuickAuth接入文档](https://qauth.cn/doc/index.html)
插件地址:
Gitee: [https://gitee.com/wixy/QuickAuthLogin-WP](https://gitee.com/wixy/QuickAuthLogin-WP)
Github: [https://github.com/mr-wixy/QuickAuthLogin-WP](https://github.com/mr-wixy/QuickAuthLogin-WP)
(请勿与其它同类插件同时启用,以免互相影响)
## 使用方法
第 1 步:下载本插件,解压,放到 `wp-content/plugins` 目录中;
第 2 步:登录管理后台,激活插件;
第 3 步登录QuickAuth网站创建接入应用
![创建接入应用](https://cdn.wixy.cn/blog-picture/20220407155243.png)
第 4 步:发布应用;
![发布应用](https://cdn.wixy.cn/blog-picture/20220407133237.png)
第 5 步:[获取](https://qauth.cn/config/secret)UserSecretKey
![](https://cdn.wixy.cn/blog-picture/blog-picture20220127161157.png)
第 6 步进入博客插件后台配置AppKey和UserSecret
![](https://cdn.wixy.cn/blog-picture/20220207145540.png)
第 7 步:进入博客后台绑定管理员微信账号;
![](https://cdn.wixy.cn/blog-picture/20220207151735.png)
最后:我们就可以点击登录界面的微信登录按钮扫码登陆了
![](https://cdn.wixy.cn/blog-picture/20220207151419.png)
## 重要说明
1. QuickAuthApi 默认配置正常情况下无需修改除非QuickAuth网站接口地址改了
2. 未绑定用户自动注册 开启后,未绑定的微信扫码则会自动注册账号
## 与我联系
作者wixy
如果有任何意见或发现任何BUG请联系我
博客:[https://blog.wixy.cn/](https://blog.wixy.cn/)
邮箱:[wixy@qq.com](mailto:wixy@qq.com)
[1]: https://cdn.wixy.cn/blog-file/2022/02/07/1644217858.zip