@kne/fastify-account 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,6 +56,7 @@ const accountService = fp(async (fastify, options) => {
56
56
 
57
57
  const sendVerificationCode = async ({ name, type, options: otherOptions }) => {
58
58
  // messageType: 0:短信验证码,1:邮件验证码 type: 0:注册,2:登录,4:验证租户管理员,5:忘记密码
59
+ name = name.toLowerCase();
59
60
  const code = await generateVerificationCode({ name, type });
60
61
  const isEmail = userNameIsEmail(name);
61
62
  // 这里写发送逻辑
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kne/fastify-account",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "用于用户注册登录认证.",
5
5
  "main": "index.js",
6
6
  "scripts": {