From bd68992501f8ad7536941f4b888fd396cd3683c4 Mon Sep 17 00:00:00 2001 From: chenruilong Date: Wed, 9 Nov 2022 12:08:59 +0800 Subject: [PATCH] 1.0.28 --- .gitignore | 1 + uni_modules/uni-id-pages/.npmignore | 4 +++- uni_modules/uni-id-pages/changelog.md | 2 ++ uni_modules/uni-id-pages/package.json | 2 +- .../uniCloud/cloudfunctions/uni-id-co/lib/utils/password.js | 1 - .../uni-id-co/module/account/reset-pwd-by-email.js | 2 +- .../uni-id-co/module/account/reset-pwd-by-sms.js | 2 +- .../cloudfunctions/uni-id-co/module/account/update-pwd.js | 2 +- .../cloudfunctions/uni-id-co/module/admin/update-user.js | 2 +- .../uniCloud/cloudfunctions/uni-id-co/package.json | 2 +- 10 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index bd3d21a..3470f75 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ node_modules/ .vite/ uni_modules_tools/copy /uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json +/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/custom-password.js .idea .vscode diff --git a/uni_modules/uni-id-pages/.npmignore b/uni_modules/uni-id-pages/.npmignore index e5cae04..20adc0e 100644 --- a/uni_modules/uni-id-pages/.npmignore +++ b/uni_modules/uni-id-pages/.npmignore @@ -1,2 +1,4 @@ *.test.js -**/node_modules/ \ No newline at end of file +**/node_modules/ +package-lock.json +.eslintrc.js diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index 78aa436..5d47e65 100644 --- a/uni_modules/uni-id-pages/changelog.md +++ b/uni_modules/uni-id-pages/changelog.md @@ -1,3 +1,5 @@ +## 1.0.28(2022-11-09) +- uni-id-co 升级密码加密算法,支持hmac-sha256加密 [详情](https://uniapp.dcloud.net.cn/uniCloud/uni-id-summary.html#password-safe) ## 1.0.27(2022-10-26) - uni-id-co 新增 secureNetworkHandshakeByWeixin 接口,用于建立和微信小程序的安全网络连接 ## 1.0.26(2022-10-18) diff --git a/uni_modules/uni-id-pages/package.json b/uni_modules/uni-id-pages/package.json index 20233a7..f8e5f2f 100644 --- a/uni_modules/uni-id-pages/package.json +++ b/uni_modules/uni-id-pages/package.json @@ -1,7 +1,7 @@ { "id": "uni-id-pages", "displayName": "uni-id-pages", - "version": "1.0.27", + "version": "1.0.28", "description": "云端一体简单、统一、可扩展的用户中心页面模版", "keywords": [ "用户管理", diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/password.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/password.js index d074690..0e46757 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/password.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/password.js @@ -76,7 +76,6 @@ const passwordExtMethod = { }, [passwordAlgorithmMap.UNI_ID_CUSTOM]: { verify ({ password, passwordSecret }) { - console.log(customPassword) if (!customPassword.verifyPassword) throw new Error('verifyPassword method not found in custom password file') // return true or false diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-email.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-email.js index 8160f26..70dd71e 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-email.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-email.js @@ -12,7 +12,7 @@ const { userCollection, EMAIL_SCENE, CAPTCHA_SCENE, - LOG_TYPE, dbCmd + LOG_TYPE } = require('../../common/constants') const { findUser diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-sms.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-sms.js index 683e478..ff05544 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-sms.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-sms.js @@ -12,7 +12,7 @@ const { userCollection, SMS_SCENE, CAPTCHA_SCENE, - LOG_TYPE, dbCmd + LOG_TYPE } = require('../../common/constants') const { findUser diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/update-pwd.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/update-pwd.js index ae8f7e6..33cc1b0 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/update-pwd.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/update-pwd.js @@ -1,5 +1,5 @@ const { - userCollection, dbCmd + userCollection } = require('../../common/constants') const { ERROR diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/admin/update-user.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/admin/update-user.js index 2e97313..12b073f 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/admin/update-user.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/admin/update-user.js @@ -5,7 +5,7 @@ const { ERROR } = require('../../common/error') const { - userCollection, dbCmd + userCollection } = require('../../common/constants') const PasswordUtils = require('../../lib/utils/password') diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json index 6cd370a..b9f6c6d 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json @@ -1,6 +1,6 @@ { "name": "uni-id-co", - "version": "1.0.27", + "version": "1.0.28", "description": "", "main": "index.js", "keywords": [], -- GitLab