diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index 1d5ca1aa5d69d6bad6c2cafd31eea952339d2027..12635d965016dfc25e23f3684efcb07854ed362b 100644 --- a/uni_modules/uni-id-pages/changelog.md +++ b/uni_modules/uni-id-pages/changelog.md @@ -1,8 +1,10 @@ -## 1.1.22(2024-09-13) -- 注册登录时去除字符串两端的空白字符 -- 删除static目录下重复资源 -## 1.1.21(2024-08-02) -- uni-id-co 修复联登更新用户信息接口存在手机号或者邮箱时没有设置认证状态 +## 1.1.23(2024-11-04) +- uni-id-co 修复 没有配置敏感信息解密密钥时导致登录报错的问题 +## 1.1.22(2024-09-13) +- 注册登录时去除字符串两端的空白字符 +- 删除static目录下重复资源 +## 1.1.21(2024-08-02) +- uni-id-co 修复联登更新用户信息接口存在手机号或者邮箱时没有设置认证状态 ## 1.1.20(2024-04-28) - uni-id-co 兼容uni-app-x对客户端uniPlatform的调整(uni-app-x内uniPlatform区分app-android、app-ios) ## 1.1.19(2024-03-20) diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/sensitive-aes-cipher.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/sensitive-aes-cipher.js index 91e2db3b4bcf25cb21ee0ab40e0432baff75c592..80ce27956f4adbd3e225a2dce023fab1f9ae6a57 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/sensitive-aes-cipher.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/sensitive-aes-cipher.js @@ -21,10 +21,10 @@ function checkSecret (secret) { } } function encryptData (text = '') { - if (!text) return text - const encryptSecret = this.config.sensitiveInfoEncryptSecret + if (!text || !encryptSecret) return text + checkSecret(encryptSecret) const iv = encryptSecret.slice(-16) @@ -40,10 +40,10 @@ function encryptData (text = '') { } function decryptData (text = '') { - if (!text) return text - const encryptSecret = this.config.sensitiveInfoEncryptSecret + if (!text || !encryptSecret) return text + checkSecret(encryptSecret) const iv = encryptSecret.slice(-16)