tachybase_todo/packages/plugins/@tachybase/plugin-sms-auth/README.md
sealday ede7ead8b1 chore(version): release v0.21.34 (#1045)
Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#1045
2024-05-24 01:06:06 +08:00

24 lines
680 B
Markdown
Raw 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.

# SMS Auth
提供短信登录认证功能。
## 依赖
- `@tachybase/auth` 认证插件,提供认证相关功能,表、模型、函数复用等。
- `@tachybase/plugin-verification` 验证码插件,提供短信发送功能。
## 使用方法
### 新增验证码Provider
插件设置 - Verification/验证码
新增一个Provider, 并设置为默认方式。
<img src="https://s2.loli.net/2023/05/16/6VKDcqW41F8P9Gu.png" width="800px" />
### 新增SMS认证器
插件设置 - Authentication/认证
新增选择认证类型为SMS新增一个Authenticator。
效果如图:
<img src="https://s2.loli.net/2023/05/16/GVW5mHTvBhn8Zck.png" width="400px" />