nocobase/packages/plugins/sms-auth
YANG QIA be6b949f55
feat(auth): support signing in with username (#2376)
* feat(auth): support signing in with username

* chore: compatibility && add INIT_ROOT_USERNAME

* chore: add default username of root user

* chore: add notice

* fix: typo

* chore: change rule of username

* fix: sqlite add unique constraint

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-08-19 22:02:26 +08:00
..
src feat(auth): support signing in with username (#2376) 2023-08-19 22:02:26 +08:00
.npmignore refactor!: plugins build and plugins load (#2253) 2023-08-02 00:07:52 +08:00
client.d.ts refactor!: plugins build and plugins load (#2253) 2023-08-02 00:07:52 +08:00
client.js refactor!: plugins build and plugins load (#2253) 2023-08-02 00:07:52 +08:00
package.json chore(versions): 😊 publish v0.12.0-alpha.5 2023-08-18 15:53:53 +08:00
README.md
server.d.ts refactor!: plugins build and plugins load (#2253) 2023-08-02 00:07:52 +08:00
server.js refactor!: plugins build and plugins load (#2253) 2023-08-02 00:07:52 +08:00

SMS Auth

提供短信登录认证功能。

依赖

  • @nocobase/auth 认证插件,提供认证相关功能,表、模型、函数复用等。
  • @nocobase/plugin-verification 验证码插件,提供短信发送功能。

使用方法

新增验证码Provider

插件设置 - Verification/验证码
新增一个Provider, 并设置为默认方式。

新增SMS认证器

插件设置 - Authentication/认证
新增选择认证类型为SMS新增一个Authenticator。

效果如图: