diff --git a/.gitignore b/.gitignore index bd3d21a774b82982c099090b8fd68d339fc910fd..3470f75730918160f02ea0e89d262d7a0b679081 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 e5cae048b933c6682ed8ee9da863b1a0e6a17b05..20adc0e90e23c3a6757cc921ae3a42820e68b4e6 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 78aa436164948f6c161d291a44334854aa91595c..5d47e6538ec2fc9fa3d1a80dbbff1a4ec66e43fa 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 20233a73f4bdcdb65ba3d27e7536a5fb90411975..f8e5f2f7c46c00aa4a9de4ae4e23b277e634799b 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 d07469019b94f16d129b25c67f43f02e161eb76f..0e46757eb6c36ce9ef5316c81b220e8efbd782f2 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 8160f260e22703ee61e609f55e3cde8fbd20d1c2..70dd71ea4f6ab438f53aecba44ae94f918a8d609 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 683e478f8b1b818156b943fd39b1f156166b55ad..ff055447378a9a162f1ad38f8dd3aad0cbcd576d 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 ae8f7e6255bae5c9ac4c0338af8598762a3c7c90..33cc1b058c3b2c5ae69b8348f20972288f87f627 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 2e973138ddb544867a5a5222379a6ad1c7c797d0..12b073f0d3128bc9a610baf938d5579bba785894 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 6cd370a96d139a072d682afa54f953507f4a3502..b9f6c6d1b367de57e5d8bf4be7800bfdfd8c5ed4 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": [],